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

Caolán McNamara caolanm at redhat.com
Wed Nov 13 07:41:39 PST 2013


 vcl/source/gdi/embeddedfontshelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a88ea0092c8c5176cfa6ecf3e781375633b6c665
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Nov 13 15:40:10 2013 +0000

    sufficientFontRights usage appears to have reversed logic
    
    Change-Id: Icbadfc2f2279f1814f7269110c61bb877c59cb0b

diff --git a/vcl/source/gdi/embeddedfontshelper.cxx b/vcl/source/gdi/embeddedfontshelper.cxx
index d32f9a3..b69be4e 100644
--- a/vcl/source/gdi/embeddedfontshelper.cxx
+++ b/vcl/source/gdi/embeddedfontshelper.cxx
@@ -149,7 +149,7 @@ bool EmbeddedFontsHelper::addEmbeddedFont( uno::Reference< io::XInputStream > st
     {
         sufficientFontRights = sufficientTTFRights( &fontData.front(), fontData.size(), EditingAllowed );
     }
-    if( sufficientFontRights )
+    if( !sufficientFontRights )
     {
         // It would be actually better to open the document in read-only mode in this case,
         // warn the user about this, and provide a button to drop the font(s) in order


More information about the Libreoffice-commits mailing list