diff options
author | Oliver Bolte <obo@openoffice.org> | 2007-07-18 09:54:51 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2007-07-18 09:54:51 +0000 |
commit | 88879a0d12fba95825b7f99f348094039ba3e029 (patch) | |
tree | 51f007156319730cdd24bb230844c3a3aadfff84 /svx | |
parent | 06b389691fece6f74d527a9f93aa0e4f13d58772 (diff) |
INTEGRATION: CWS aw051 (1.3.188); FILE MERGED
2007/05/29 14:12:36 aw 1.3.188.1: #i77674#
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/overlay/overlaymanager.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/svx/source/sdr/overlay/overlaymanager.cxx b/svx/source/sdr/overlay/overlaymanager.cxx index 971bfbc645d4..410f72eaa1ab 100644 --- a/svx/source/sdr/overlay/overlaymanager.cxx +++ b/svx/source/sdr/overlay/overlaymanager.cxx @@ -4,9 +4,9 @@ * * $RCSfile: overlaymanager.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: hr $ $Date: 2007-06-26 12:07:40 $ + * last change: $Author: obo $ $Date: 2007-07-18 10:54:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -264,12 +264,11 @@ namespace sdr { if(OUTDEV_WINDOW == getOutputDevice().GetOutDevType()) { - // transform to rectangle - const basegfx::B2DPoint aMinimum(rRange.getMinimum()); - const basegfx::B2DPoint aMaximum(rRange.getMaximum()); + // #i77674# transform to rectangle. Use floor/ceil to get all covered + // discrete pixels, see #i75163# and OverlayManagerBuffered::invalidateRange const Rectangle aInvalidateRectangle( - FRound(aMinimum.getX()), FRound(aMinimum.getY()), - FRound(aMaximum.getX()), FRound(aMaximum.getY())); + (sal_Int32)floor(rRange.getMinX()), (sal_Int32)floor(rRange.getMinY()), + (sal_Int32)ceil(rRange.getMaxX()), (sal_Int32)ceil(rRange.getMaxY())); // simply invalidate ((Window&)getOutputDevice()).Invalidate(aInvalidateRectangle, INVALIDATE_NOERASE); |