summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdsnpv.cxx
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2002-10-11 10:40:54 +0000
committerAndre Fischer <af@openoffice.org>2002-10-11 10:40:54 +0000
commit8a90945f3ce8f0915aa0bfdf14c31010874bce22 (patch)
treebf9eddf4f5ffca05b856d83145f5120e1470778f /svx/source/svdraw/svdsnpv.cxx
parent72856692fde47587068273223ec9a7d87102cd9f (diff)
#99937# Origin can now be placed outside the page.
Diffstat (limited to 'svx/source/svdraw/svdsnpv.cxx')
-rw-r--r--svx/source/svdraw/svdsnpv.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdsnpv.cxx b/svx/source/svdraw/svdsnpv.cxx
index 4d8fc25baf39..a673f49cd9ae 100644
--- a/svx/source/svdraw/svdsnpv.cxx
+++ b/svx/source/svdraw/svdsnpv.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svdsnpv.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: cl $ $Date: 2002-09-04 15:56:27 $
+ * last change: $Author: af $ $Date: 2002-10-11 11:40:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -452,6 +452,13 @@ BOOL SdrSnapView::EndSetPageOrg()
bSetPageOrg=FALSE;
Point aPnt=aDragStat.GetNow();
SdrPageView* pPV=HitPage(aPnt);
+
+ // According to bug #99937# the page origin shall allways be set,
+ // even when it lies outside the actual page area. Therefore, the
+ // first page is used as a fallback when no other is found.
+ if (pPV == NULL)
+ pPV = GetPageViewPvNum (0);
+
if (pPV!=NULL) {
aPnt-=pPV->GetOffset();
pPV->SetPageOrigin(aPnt);