<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Chart in a form: setmodified(true) won't be executed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126499#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Chart in a form: setmodified(true) won't be executed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126499">bug 126499</a>
              from <span class="vcard"><a class="email" href="mailto:sgrekow@yahoo.com" title="Stang <sgrekow@yahoo.com>"> <span class="fn">Stang</span></a>
</span></b>
        <pre>Have an alternative using doVerb().

In ActivateDiagram replaced:

    oXCOEO.changeState(4)       ' UI_ACTIVE = 4
    oXCOEO.changeState(0)       ' LOADED = 0

with:

    oXCOEO.doVerb(-2)
    oXCOEO.doVerb(-3)

Then added:

    oXCOEO = oDiag.ExtendedControlOverEmbeddedObject
    oXCOEO.doVerb(-2)
    oXCOEO.doVerb(-3)

to the end of Change Data.

Works well on Ubuntu 18.04 Mate with LO:

Version: 6.4.0.3
Build ID: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

Will attach original sample with noted modifications.</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>