diff options
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/dialog/weldeditview.cxx | 2 | ||||
-rw-r--r-- | svx/source/theme/ThemeColorChangerCommon.cxx | 12 |
2 files changed, 6 insertions, 8 deletions
diff --git a/svx/source/dialog/weldeditview.cxx b/svx/source/dialog/weldeditview.cxx index 46ab95eb9a18..d1b5e4b73e4a 100644 --- a/svx/source/dialog/weldeditview.cxx +++ b/svx/source/dialog/weldeditview.cxx @@ -144,7 +144,7 @@ void WeldEditView::Resize() pEditView->ShowCursor(); const tools::Long nMaxVisAreaStart - = pEditView->GetEditEngine()->GetTextHeight() - aOutputSize.Height(); + = pEditView->getEditEngine().GetTextHeight() - aOutputSize.Height(); tools::Rectangle aVisArea(pEditView->GetVisArea()); if (aVisArea.Top() > nMaxVisAreaStart) { diff --git a/svx/source/theme/ThemeColorChangerCommon.cxx b/svx/source/theme/ThemeColorChangerCommon.cxx index bca8ea1a1bb7..120a6bea03d9 100644 --- a/svx/source/theme/ThemeColorChangerCommon.cxx +++ b/svx/source/theme/ThemeColorChangerCommon.cxx @@ -62,9 +62,7 @@ bool updateEditEngTextSections(model::ColorSet const& rColorSet, SdrObject* pObj if (!pOutlinerView) return false; - auto* pEditEngine = pOutlinerView->GetEditView().GetEditEngine(); - if (!pEditEngine) - return false; + auto& rEditEngine = pOutlinerView->GetEditView().getEditEngine(); OutlinerParaObject* pOutlinerParagraphObject = pTextObject->GetOutlinerParaObject(); if (pOutlinerParagraphObject) @@ -82,9 +80,9 @@ bool updateEditEngTextSections(model::ColorSet const& rColorSet, SdrObject* pObj model::ComplexColor const& rComplexColor = pItem->getComplexColor(); if (rComplexColor.isValidThemeType()) { - SfxItemSet aSet(pEditEngine->GetAttribs(rSection.mnParagraph, rSection.mnStart, - rSection.mnEnd, - GetAttribsFlags::CHARATTRIBS)); + SfxItemSet aSet(rEditEngine.GetAttribs(rSection.mnParagraph, rSection.mnStart, + rSection.mnEnd, + GetAttribsFlags::CHARATTRIBS)); Color aNewColor = rColorSet.resolveColor(rComplexColor); std::unique_ptr<SvxColorItem> pNewItem(pItem->Clone()); pNewItem->setColor(aNewColor); @@ -92,7 +90,7 @@ bool updateEditEngTextSections(model::ColorSet const& rColorSet, SdrObject* pObj ESelection aSelection(rSection.mnParagraph, rSection.mnStart, rSection.mnParagraph, rSection.mnEnd); - pEditEngine->QuickSetAttribs(aSet, aSelection); + rEditEngine.QuickSetAttribs(aSet, aSelection); } } } |