diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2017-07-19 19:38:52 +0000 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2017-07-20 09:12:29 +0200 |
commit | b8e26ebe2c37640212ef663a483cddf1639af742 (patch) | |
tree | be7154f1156431990e785bdcf4f05c53a7e9bc89 /sc/inc/column.hxx | |
parent | 58ccac44f7df4273db31e4bbe9043bfb4af4d08a (diff) |
Avoid unnecessary calls of AdjustRowHeight
Check if attribute changed during ApplyAttributes. If it did not change,
it is unnecessary to recalculate cell size, repaint etc.
Change-Id: Ic3a3fa24efa9ad3619b8979a67e972a7635311cc
Reviewed-on: https://gerrit.libreoffice.org/40198
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'sc/inc/column.hxx')
-rw-r--r-- | sc/inc/column.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 68784b9bd932..e280e3c7f692 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -497,7 +497,7 @@ public: void RemoveProtected( SCROW nStartRow, SCROW nEndRow ); - SCROW ApplySelectionCache( SfxItemPoolCache* pCache, const ScMarkData& rMark, ScEditDataArray* pDataArray ); + SCROW ApplySelectionCache( SfxItemPoolCache* pCache, const ScMarkData& rMark, ScEditDataArray* pDataArray, bool* const pIsChanged = nullptr ); void DeleteSelection( InsertDeleteFlags nDelFlag, const ScMarkData& rMark, bool bBroadcast ); void ClearSelectionItems( const sal_uInt16* pWhich, const ScMarkData& rMark ); |