diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-02-25 21:48:33 +0000 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2013-03-04 17:38:07 +0100 |
commit | 1341131eb54abca218296ce49428cc5da78f4691 (patch) | |
tree | 2abe17d41b8e92b2e569f4295f0151805cf859a9 /svx/source | |
parent | support new attribute also in 3.6, fdo#60760 (diff) | |
download | core-1341131eb54abca218296ce49428cc5da78f4691.tar.gz core-1341131eb54abca218296ce49428cc5da78f4691.zip |
fdo#45879 - fix selected gluepoint rendering.
Store the glue-point bitmap at a unique index in maRealMarkers for re-use.
Change-Id: I2cd5b240619502dfc8634eca331f4163e5bd5ca8
(cherry picked from commit 8d34984116c0841748ae47afa667877dc1b5a444)
Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdhdl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx index 62c3aae7500b..6c06d414e323 100644 --- a/svx/source/svdraw/svdhdl.cxx +++ b/svx/source/svdraw/svdhdl.cxx @@ -96,11 +96,11 @@ public: //////////////////////////////////////////////////////////////////////////////////////////////////// #define KIND_COUNT (14) #define INDEX_COUNT (6) -#define INDIVIDUAL_COUNT (4) +#define INDIVIDUAL_COUNT (5) SdrHdlBitmapSet::SdrHdlBitmapSet(sal_uInt16 nResId) : maMarkersBitmap(ResId(nResId, *ImpGetResMgr())), - // 14 kinds (BitmapMarkerKind) use index [0..5], 4 extra + // 15 kinds (BitmapMarkerKind) use index [0..5] + 5 extra maRealMarkers((KIND_COUNT * INDEX_COUNT) + INDIVIDUAL_COUNT) { } @@ -246,20 +246,20 @@ const BitmapEx& SdrHdlBitmapSet::GetBitmapEx(BitmapMarkerKind eKindOfMarker, sal case Glue_Deselected: { - return impGetOrCreateTargetBitmap((KIND_COUNT * INDEX_COUNT) + 1, Rectangle(Point(15, 67), Size(9, 9))); + return impGetOrCreateTargetBitmap((KIND_COUNT * INDEX_COUNT) + 2, Rectangle(Point(15, 67), Size(9, 9))); } case Anchor: // AnchorTR for SW case AnchorTR: { - return impGetOrCreateTargetBitmap((KIND_COUNT * INDEX_COUNT) + 2, Rectangle(Point(24, 67), Size(24, 24))); + return impGetOrCreateTargetBitmap((KIND_COUNT * INDEX_COUNT) + 3, Rectangle(Point(24, 67), Size(24, 24))); } // add AnchorPressed to be able to animate anchor control case AnchorPressed: case AnchorPressedTR: { - return impGetOrCreateTargetBitmap((KIND_COUNT * INDEX_COUNT) + 3, Rectangle(Point(48, 67), Size(24, 24))); + return impGetOrCreateTargetBitmap((KIND_COUNT * INDEX_COUNT) + 4, Rectangle(Point(48, 67), Size(24, 24))); } } } |