summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/presenter/PresenterTextView.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/presenter/PresenterTextView.cxx b/sd/source/ui/presenter/PresenterTextView.cxx
index 4f2e6ca3882a..817ad55dc44e 100644
--- a/sd/source/ui/presenter/PresenterTextView.cxx
+++ b/sd/source/ui/presenter/PresenterTextView.cxx
@@ -521,7 +521,7 @@ void PresenterTextView::Implementation::CheckTop (void)
{
DBG_ASSERT(mpEditEngine!=NULL, "EditEngine missing");
- if (mnTotalHeight < 0)
+ if (mpEditEngine!=NULL && mnTotalHeight < 0)
mnTotalHeight = mpEditEngine->GetTextHeight();
if (mpEditEngine!=NULL && mnTop >= mnTotalHeight)
mnTop = mnTotalHeight - mpEditEngine->GetLineHeight(0,0);