<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FORMATTING: custom conditional style lost on saving"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=82802">bug 82802</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;">CC</td>
           <td>
                
           </td>
           <td>rb.henschel@t-online.de
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>FORMATTING: custom conditional style
           </td>
           <td>FORMATTING: custom conditional style lost on saving
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FORMATTING: custom conditional style lost on saving"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=82802#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FORMATTING: custom conditional style lost on saving"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=82802">bug 82802</a>
              from <span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span></b>
        <pre>I see the problem even the condition is set immediately and works while first
working on the document. After save and reload the condition is gone.

To reproduce:
Define a style "Red" from Default, that has a red font color.
Define a style "Blue" from Default, that has a blue font color.
Start defining a style "ConditionCaller" from Default. Go to tab Condition and
mark "Conditional Style". Apply the style "Red" to the condition "Table Header"
and the style "Blue" to "Table". OK
Insert a table e.g. 2 columns and 4 rows with table header and some dummy text.
Mark the whole table and apply your newly defined style "ConditionCaller".
Notice that the text in the first row of the table becomes red and in the other
cells blue.
Save the document.
Reload.
Notice that the colors are lost.

If you look into the file, you will see, that there are no <style:map>
elements, which would be needed for a conditional style.

This happens too, if you the set the conditions in the style "Text body".

I have used Version: 5.2.6.2
Build ID: a3100ed2409ebf1c212f5048fbe377c281438fdc
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: de-DE (de_DE); Calc: group</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>