diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-16 12:04:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-16 15:00:56 +0200 |
commit | 3ec86ad77071af577f37a83a0b1d0389b2204716 (patch) | |
tree | 5c48e447185bf6a8872cbbbc8a19b967987f8e9b /sd | |
parent | e75a01f4a00fdafad918099b90d1ca79224b4dca (diff) |
tdf#119284 bg for automatic not set while editing
refactor and reuse fdo#35779 solution for this case
Change-Id: I0631cd2560aa2acc2310f95b5c4dea36a2845a58
Reviewed-on: https://gerrit.libreoffice.org/59165
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/sdview.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index bbb5d417422f..527c1e06f2a1 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -715,18 +715,18 @@ bool View::SdrBeginTextEdit( if (::Outliner* pOL = bReturn ? GetTextEditOutliner() : nullptr) { - if (pObj && pObj->getSdrPageFromSdrObject()) + if (pObj) { - Color aBackground; if( pObj->GetObjInventor() == SdrInventor::Default && pObj->GetObjIdentifier() == OBJ_TABLE ) { + Color aBackground; aBackground = GetTextEditBackgroundColor(*this); + pOL->SetBackgroundColor( aBackground ); } else { - aBackground = pObj->getSdrPageFromSdrObject()->GetPageBackgroundColor(pPV); + pObj->setSuitableOutlinerBg(*pOL); } - pOL->SetBackgroundColor( aBackground ); } pOL->SetParaInsertedHdl(LINK(this, View, OnParagraphInsertedHdl)); |