[Libreoffice-commits] core.git: drawinglayer/source

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Wed May 6 10:36:56 UTC 2020


 drawinglayer/source/attribute/sdrglowattribute.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 3e131bffde3deb7229077aa0d1fd98fe1854a45e
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed May 6 10:51:17 2020 +0300
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Wed May 6 12:36:21 2020 +0200

    This comparison is redundant, radiuses are compared below
    
    Change-Id: Idb98314877518beefdd12dd95bbbb055f3aa429d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93549
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/drawinglayer/source/attribute/sdrglowattribute.cxx b/drawinglayer/source/attribute/sdrglowattribute.cxx
index 6eaab35b8f37..4295aef23ae3 100644
--- a/drawinglayer/source/attribute/sdrglowattribute.cxx
+++ b/drawinglayer/source/attribute/sdrglowattribute.cxx
@@ -41,8 +41,6 @@ SdrGlowAttribute& SdrGlowAttribute::operator=(SdrGlowAttribute&&) = default;
 
 bool SdrGlowAttribute::operator==(const SdrGlowAttribute& rCandidate) const
 {
-    if (rCandidate.isDefault() != isDefault())
-        return false;
     return m_nRadius == rCandidate.m_nRadius && m_color == rCandidate.m_color;
 }
 


More information about the Libreoffice-commits mailing list