summaryrefslogtreecommitdiff
path: root/svx/source/dialog/svxruler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/svxruler.cxx')
-rw-r--r--svx/source/dialog/svxruler.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index 117642eb3aad..24f856f09de0 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -1340,10 +1340,11 @@ void SvxRuler::Update()
}
-inline long SvxRuler::GetPageWidth() const
+long SvxRuler::GetPageWidth() const
{
+ if ( !pPagePosItem )
+ return 0;
return bHorz ? pPagePosItem->GetWidth() : pPagePosItem->GetHeight();
-
}