[Libreoffice-bugs] [Bug 137886] The logic of hiding CJK/CTL properties in style inspector seems reversed

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 2 10:35:16 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=137886

--- Comment #5 from Shivam Kumar Singh <shivamhere247 at gmail.com> ---
(In reply to Shivam Kumar Singh from comment #4)
> The code means "if CJKFont is enabled and rPropName is related to Asian
> return false", this should rather be

     // Hide Asian and Complex properties
 if (rPropName.indexOf("Asian") != -1 &&
!SvtLanguageOptions().IsCJKFontEnabled())
           return false;
 if (rPropName.indexOf("Complex") != -1 &&
!SvtLanguageOptions().IsCTLFontEnabled())
           return false;

I missed the *not* operator ;-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201102/6efb6c60/attachment.htm>


More information about the Libreoffice-bugs mailing list