summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-01-06 16:24:07 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-01-06 16:41:24 -0500
commit248a6136b898389a5d3d351859591b2de458ce90 (patch)
treee7fabaf9b96867d5dd6de8355cec47a13b781765 /sc/inc
parentbf6ccec6334141be5e0247f9cf3f34762f668e40 (diff)
Fix re-calculation of the position of circular drawing objects.
Cell-anchored circular drawing objects would get distorted whenever its bounding rectangle changes, either via insertion / removal of columns / rows, or changing the row height / column width. This commit fixes it by differentiating the validation circles, which needs its own re-calc algorithm, from the normal circular drawing objects.
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/userdat.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx
index 259e99d53090..ed6adc283292 100644
--- a/sc/inc/userdat.hxx
+++ b/sc/inc/userdat.hxx
@@ -59,11 +59,13 @@ public:
class ScDrawObjData : public SdrObjUserData
{
public:
+ enum Type { CellNote, ValidationCircle, DrawingObject };
+
ScAddress maStart;
ScAddress maEnd;
Point maStartOffset;
Point maEndOffset;
- bool mbNote;
+ Type meType;
Rectangle maLastRect;
explicit ScDrawObjData();