summaryrefslogtreecommitdiff
path: root/sc/inc/formulacell.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-12-16 15:04:19 +0100
committerEike Rathke <erack@redhat.com>2017-12-16 21:02:37 +0100
commitda81ec6862490a87bc240edb81c0a9b5fd04a1b3 (patch)
treeade5524d8c7fc7a821a46cceb25465752aafa151 /sc/inc/formulacell.hxx
parent0bf4fd6ce0b8bfe8349e95571ad09e94cc3d1fef (diff)
Do not recalculate the same weight over and over again, tdf#114251 related
Remember it at the group so if for some reason the group is not calculated as group then the individual cells of the group don't iterate over the RPN again to calculate the same value. This does not solve tdf#114251 in any way, just side-cars. Change-Id: Ia26d4a7fe608d8aaa30686ce95c1caa25da02469 Reviewed-on: https://gerrit.libreoffice.org/46601 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/inc/formulacell.hxx')
-rw-r--r--sc/inc/formulacell.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index cdb67a3e27fc..867bb89692d2 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -65,6 +65,7 @@ public:
ScTokenArray* mpCode;
ScFormulaCell *mpTopCell;
SCROW mnLength; // How many of these do we have ?
+ sal_Int32 mnWeight;
short mnFormatType;
bool mbInvariant:1;
bool mbSubTotal:1;