summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdsnpv.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-03-27 14:06:05 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-03-27 14:06:05 +0000
commit80204d8fcf35c14168a75765360eb61977653162 (patch)
treebef084bbf17b8e0d28743b03ea7213aafeae831e /svx/source/svdraw/svdsnpv.cxx
parent45804b0395ec0f8369224229e41f1b099c4754d3 (diff)
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'svx/source/svdraw/svdsnpv.cxx')
-rw-r--r--svx/source/svdraw/svdsnpv.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdsnpv.cxx b/svx/source/svdraw/svdsnpv.cxx
index a673f49cd9ae..d94232317dde 100644
--- a/svx/source/svdraw/svdsnpv.cxx
+++ b/svx/source/svdraw/svdsnpv.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svdsnpv.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: af $ $Date: 2002-10-11 11:40:54 $
+ * last change: $Author: hr $ $Date: 2003-03-27 15:04:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -222,9 +222,14 @@ USHORT SdrSnapView::SnapPos(Point& rPnt, const SdrPageView* pPV) const
bPVOfs=TRUE;
// !!!!!!hier stattdessen mal die GridFrames verwenden!!!!!!!!
// SdrPage::GetOffset() kann dann entsorgt werden.
- Point aWriterPageOffset(pPV->GetPage()->GetOffset());
- xOffs=pPV->GetOffset().X()+aWriterPageOffset.X();
- yOffs=pPV->GetOffset().Y()+aWriterPageOffset.Y();
+
+ // #i3694#
+ // The Page::GetOffset() method is not needed anymore, it even leads to errors.
+ // I will completely remove it, only Writer implements it (with a constant
+ // of (DOCUMENTBORDER, DOCUMENTBORDER ).
+ // Point aWriterPageOffset(pPV->GetPage()->GetOffset());
+ xOffs=pPV->GetOffset().X(); // +aWriterPageOffset.X();
+ yOffs=pPV->GetOffset().Y(); // +aWriterPageOffset.Y();
x-=xOffs;
y-=yOffs;