diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-11 10:20:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-11 14:08:37 +0000 |
commit | dc23633610a80dcbd978c8c368d7520f0436227f (patch) | |
tree | 23ec75d5194f2f7d1645d25b9ab646a91f491c1c | |
parent | 5448d8ed38c0e13b6df83294689bcabe9f4dcb20 (diff) |
consistently check here
Change-Id: I38f0e3d606d80b717b27a105ebe72b96f3eba50b
-rw-r--r-- | sd/source/ui/presenter/PresenterTextView.cxx | 2 |
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); |