diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-05-24 11:53:59 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-05-24 21:49:44 +0200 |
commit | 551c204740a37c8dbc7acd35bc9fe683ade3fe80 (patch) | |
tree | 0a06abd4d0ebeee01a85de85739406669cfa55ff /drawinglayer/source/attribute/sdrlineattribute.cxx | |
parent | 187af9b0c09f6ba57e994a25a756f0994beae7e5 (diff) |
Fix tdf#87509 - default sdr attribute is special object.
The drawinglayer attributes signal defaultness by object identity, not
value equalness. That should fix a number of subtle cache and redraw
problems.
Change-Id: I049ffda228a48db71cef108571805c6e41e4b149
Diffstat (limited to 'drawinglayer/source/attribute/sdrlineattribute.cxx')
-rw-r--r-- | drawinglayer/source/attribute/sdrlineattribute.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drawinglayer/source/attribute/sdrlineattribute.cxx b/drawinglayer/source/attribute/sdrlineattribute.cxx index 5afcac016887..f1842fa03853 100644 --- a/drawinglayer/source/attribute/sdrlineattribute.cxx +++ b/drawinglayer/source/attribute/sdrlineattribute.cxx @@ -142,6 +142,10 @@ namespace drawinglayer bool SdrLineAttribute::operator==(const SdrLineAttribute& rCandidate) const { + // tdf#87509 default attr is always != non-default attr, even with same values + if(rCandidate.isDefault() != isDefault()) + return false; + return rCandidate.mpSdrLineAttribute == mpSdrLineAttribute; } |