<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:shivamhere247@gmail.com" title="Shivam Kumar Singh <shivamhere247@gmail.com>"> <span class="fn">Shivam Kumar Singh</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - The logic of hiding CJK/CTL properties in style inspector seems reversed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=137886">bug 137886</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - The logic of hiding CJK/CTL properties in style inspector seems reversed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=137886#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - The logic of hiding CJK/CTL properties in style inspector seems reversed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=137886">bug 137886</a>
              from <span class="vcard"><a class="email" href="mailto:shivamhere247@gmail.com" title="Shivam Kumar Singh <shivamhere247@gmail.com>"> <span class="fn">Shivam Kumar Singh</span></a>
</span></b>
        <pre>(In reply to Ming Hua from <a href="show_bug.cgi?id=137886#c3">comment #3</a>)
<span class="quote">> Fun...

> When I enable both CJK and CTL text in Tools > Options, I see *neither* "...
> Asian" *or* "... Complex" properties.  And when I disable both CJK and CTL,
> I can see those properties in style inspectors.

> The code that control whether to hide them seems to have the logic reversed,
> at least on Windows.</span >

I confirm this bug
The issue is in

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

defined in /sidebar/inspector/InspectorTextPanel.cxx?r=4fbd6386#65.

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;

"if CJKFont is *not* enabled and rPropName is related to Asian return false"

I cannot see how we missed this issue. @Heiko Should I work on this?


Version: 7.1.0.0.alpha0+
Build ID: d15aa807be1c595dad9abc1dea04bb922570015a
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Calc: threaded</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>