summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewdata.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/viewdata.cxx')
-rw-r--r--sc/source/ui/view/viewdata.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 380b9d0b0cc0..469aaeacc5a2 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -1867,8 +1867,13 @@ void ScViewData::SetEditEngine( ScSplitPos eWhich,
}
pEditView[eWhich]->SetBackgroundColor( aBackCol );
- pEditView[eWhich]->Invalidate(); // needed?
- // needed, if position changed
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ // now only needed when not CEOO (CellEditOnOverlay)
+ // needed?
+ // needed, if position changed
+ pEditView[eWhich]->Invalidate();
+ }
}
IMPL_LINK( ScViewData, EditEngineHdl, EditStatus&, rStatus, void )
@@ -1942,6 +1947,11 @@ void ScViewData::EditGrowX()
// get bGrow... variables the same way as in SetEditEngine
const ScPatternAttr* pPattern = rLocalDoc.GetPattern( nEditCol, nEditRow, nTabNo );
+ if (!pPattern)
+ {
+ SAL_WARN("sc.viewdata", "No Pattern Found for: Col: " << nEditCol << ", Row: " << nEditRow << ", Tab: " << nTabNo);
+ pPattern = &rLocalDoc.getCellAttributeHelper().getDefaultCellAttribute();
+ }
SvxCellHorJustify eJust = pPattern->GetItem( ATTR_HOR_JUSTIFY ).GetValue();
bool bGrowCentered = ( eJust == SvxCellHorJustify::Center );
bool bGrowToLeft = ( eJust == SvxCellHorJustify::Right ); // visual left