summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin4.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/gridwin4.cxx')
-rw-r--r--sc/source/ui/view/gridwin4.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index fe8aab80693b..344d99b26cef 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -656,15 +656,15 @@ private:
namespace
{
-int lcl_GetMultiLineHeight(EditEngine* pEditEngine)
+int lcl_GetMultiLineHeight(EditEngine& rEditEngine)
{
int nHeight = 0;
- int nParagraphs = pEditEngine->GetParagraphCount();
- if (nParagraphs > 1 || (nParagraphs > 0 && pEditEngine->GetLineCount(0) > 1))
+ int nParagraphs = rEditEngine.GetParagraphCount();
+ if (nParagraphs > 1 || (nParagraphs > 0 && rEditEngine.GetLineCount(0) > 1))
{
for (int nPara = 0; nPara < nParagraphs; nPara++)
{
- nHeight += pEditEngine->GetLineCount(nPara) * pEditEngine->GetLineHeight(nPara);
+ nHeight += rEditEngine.GetLineCount(nPara) * rEditEngine.GetLineHeight(nPara);
}
}
@@ -1147,9 +1147,8 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
if (bIsTiledRendering)
{
- EditEngine* pEditEngine = pOtherEditView->GetEditEngine();
- if (pEditEngine)
- aEnd.AdjustY(lcl_GetMultiLineHeight(pEditEngine));
+ EditEngine& rEditEngine = pOtherEditView->getEditEngine();
+ aEnd.AdjustY(lcl_GetMultiLineHeight(rEditEngine));
}
if (bLokRTL)