[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Simple KWord patch for frames extending beyond the page
From:       David Faure <dfaure () klaralvdalens-datakonsult ! se>
Date:       2003-10-15 19:50:16
[Download RAW message or body]

On Wednesday 15 October 2003 21:31, Michael Fair wrote:
> This patch maps the topLeft point same as the original, but instead of mapping 
> the bottomRight directly, it subtracts the bottomRight from the topLeft to 
> get the width/height, maps that width/height as a point into the view 
> coordinates, and then adds the result to the mapped topLeft point.

Passing relative coordinates to normalToView() has rather undefined behavior.
If your frame is actually higher than the page height, you should see strange result
(the preview viewmode moving that point to the 2nd page).

KWViewModePreview should simply reimplement QRect normalToView( const QRect & nRect )
(make it virtual) and do the right thing there.

Thanks.

-- 
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic