diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-07 14:04:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-07 16:54:46 +0200 |
commit | d1cddc4775f03a52bb8fa2229dc5624d8cc5a3ce (patch) | |
tree | f3b40b63914151887bcb54d0db51191e5b32e904 | |
parent | 6369cab9b1e16275c8700692bb717aec3c42d346 (diff) |
tdf#126685 CRASH: selecting all in sheet
regression from
commit 7282014e362a1529a36c88eb308df8ed359c2cfa
Date: Fri Feb 1 15:15:16 2019 +0100
tdf#50916 Makes numbers of columns dynamic.
We need to clamp the columns whenever we change sheet/table
Change-Id: I5cf22b2a7cf2f6473b8340289bcddd75ed0ad70b
Reviewed-on: https://gerrit.libreoffice.org/77105
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sc/source/core/data/documen8.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx index b1459942f83f..2bd74756266d 100644 --- a/sc/source/core/data/documen8.cxx +++ b/sc/source/core/data/documen8.cxx @@ -649,13 +649,12 @@ bool ScDocument::IdleCalcTextWidth() // true = try next again bNewTab = true; } - aScope.setCol(pTab->ClampToAllocatedColumns(aScope.Col())); - if ( nRestart < 2 ) { if ( bNewTab ) { pTab = maTabs[aScope.Tab()].get(); + aScope.setCol(pTab->ClampToAllocatedColumns(aScope.Col())); pStyle = static_cast<ScStyleSheet*>(aScope.getStylePool()->Find( pTab->aPageStyle, SfxStyleFamily::Page)); |