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

Takeshi Abe tabe at fixedpoint.jp
Fri Feb 10 00:43:28 UTC 2017


 starmath/source/cfgitem.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 765ba08d0bfba45f3a33d4cf0a03b1499ab091d5
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Wed Feb 8 21:37:26 2017 +0900

    starmath: Kill redundant check
    
    Change-Id: I45f873f3733800c43c36b38dcefb79eba46b9007
    Reviewed-on: https://gerrit.libreoffice.org/34030
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>

diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx
index b180576..6e94785 100644
--- a/starmath/source/cfgitem.cxx
+++ b/starmath/source/cfgitem.cxx
@@ -576,11 +576,7 @@ void SmMathConfig::LoadFontFormatList()
         SmFontFormat aFntFmt;
         ReadFontFormat( aFntFmt, pNode[i], FONT_FORMAT_LIST );
         if (!pFontFormatList->GetFontFormat( pNode[i] ))
-        {
-            OSL_ENSURE( nullptr == pFontFormatList->GetFontFormat( pNode[i] ),
-                    "FontFormat ID already exists" );
             pFontFormatList->AddFontFormat( pNode[i], aFntFmt );
-        }
     }
     pFontFormatList->SetModified( false );
 }


More information about the Libreoffice-commits mailing list