summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-11-13 15:40:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-11-13 15:41:13 +0000
commita88ea0092c8c5176cfa6ecf3e781375633b6c665 (patch)
tree53a9db1c36c245c2b746946c5eeff4493373192c /vcl
parent8ab4752820331ab80410877836093630198812d8 (diff)
sufficientFontRights usage appears to have reversed logic
Change-Id: Icbadfc2f2279f1814f7269110c61bb877c59cb0b
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/embeddedfontshelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/embeddedfontshelper.cxx b/vcl/source/gdi/embeddedfontshelper.cxx
index d32f9a3a2e9e..b69be4efe706 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