<div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">Hi,</span><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">I have the following code compressgraphicdialog.ui</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"> <child><br>                          <object class="GtkLabel" id="label10"><br>                            <property name="visible">True</property><br>                            <property name="can_focus">False</property><br>                            <property name="label" translatable="yes" context="compressgraphicdialog|label10">Percentage Change :</property><br>                            <property name="xalign">0</property><br>                            <accessibility><br>                                <relation type="label-for" target="label-percent-change"/><br>                            </accessibility><br>                          </object><br>                          <packing><br>                            <property name="left_attach">0</property><br>                            <property name="top_attach">5</property><br>                          </packing><br>                        </child><br>                        <child><br>                          <object class="GtkLabel" id="label-percent-change"><br>                            <property name="visible">True</property><br>                            <property name="can_focus">False</property><br>                            <property name="hexpand">True</property><br>                            <property name="label">???</property><br>                            <property name="xalign">0</property><br>                            <accessibility><br>                                <relation type="labelled-by" target="label10"/><br>                            </accessibility><br>                          </object><br>                          <packing><br>                            <property name="left_attach">1</property><br>                            <property name="top_attach">5</property><br>                          </packing><br>                        </child><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">Also, I have added this code in compressgraphicdialog.hxx</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">std::unique_ptr<weld::Label>    m_xFixedText7;<br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">and this line of code in compressgraphicdialog.cxx</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">void CompressGraphicsDialog::Initialize()<br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">{</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"> m_xFixedText7 = m_xBuilder->weld_label("label-percent-change");<br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">}</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">There are no building errors here.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">But when I add the following code in compressgraphicdialog.cxx</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">void CompressGraphicsDialog::Update()</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">{</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">m_xFixedText7->set_label("working");<br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">.</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">}</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">It gives the following exception:</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">Exception thrown at 0x00007FF99AEF0EA6 (svxlo.dll) in soffice.bin: 0xC0000005: Access violation reading location 0x0000000000000000. occurred.<br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">Could you please tell me what is going wrong here?</div><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:12.8px" dir="auto">Regards</div><div style="color:rgb(136,136,136);font-family:sans-serif;font-size:12.8px" dir="auto"><div>Anshu</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 24 Aug, 2020, 9:39 PM anshu khare, <<a href="mailto:anshukhare50@gmail.com">anshukhare50@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">  Hi,<div><br></div><div>I have the following code compressgraphicdialog.ui</div><div><br></div><div> <child><br>                          <object class="GtkLabel" id="label10"><br>                            <property name="visible">True</property><br>                            <property name="can_focus">False</property><br>                            <property name="label" translatable="yes" context="compressgraphicdialog|label10">Percentage Change :</property><br>                            <property name="xalign">0</property><br>                            <accessibility><br>                                <relation type="label-for" target="label-percent-change"/><br>                            </accessibility><br>                          </object><br>                          <packing><br>                            <property name="left_attach">0</property><br>                            <property name="top_attach">5</property><br>                          </packing><br>                        </child><br>                        <child><br>                          <object class="GtkLabel" id="label-percent-change"><br>                            <property name="visible">True</property><br>                            <property name="can_focus">False</property><br>                            <property name="hexpand">True</property><br>                            <property name="label">???</property><br>                            <property name="xalign">0</property><br>                            <accessibility><br>                                <relation type="labelled-by" target="label10"/><br>                            </accessibility><br>                          </object><br>                          <packing><br>                            <property name="left_attach">1</property><br>                            <property name="top_attach">5</property><br>                          </packing><br>                        </child><br></div><div><br></div><div>Also, I have added this code in compressgraphicdialog.hxx</div><div><br></div><div>std::unique_ptr<weld::Label>    m_xFixedText7;<br></div><div><br></div><div><br></div><div>and this line of code in compressgraphicdialog.cxx</div><div><br></div><div>void CompressGraphicsDialog::Initialize()<br></div><div>{</div><div>.</div><div>.</div><div>.</div><div><br></div><div> m_xFixedText7 = m_xBuilder->weld_label("label-percent-change");<br></div><div><br></div><div>.</div><div>.</div><div>.</div><div>}</div><div><br></div><div>There are no building errors here.</div><div><br></div><div>But when I add the following code in compressgraphicdialog.cxx</div><div><br></div><div>void CompressGraphicsDialog::Update()</div><div>{</div><div>.</div><div>.</div><div>.</div><div>m_xFixedText7->set_label("working");<br></div><div>.</div><div>.</div><div>.</div><div>}</div><div><br></div><div>It gives the following exception:</div><div><br></div><div>Exception thrown at 0x00007FF99AEF0EA6 (svxlo.dll) in soffice.bin: 0xC0000005: Access violation reading location 0x0000000000000000. occurred.<br></div><div><br></div><div>Could you please tell me what is going wrong here?</div><div><br></div><div>Regards</div><div>Anshu</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 24, 2020 at 2:26 AM Jim Raykowski (via Code Review) <<a href="mailto:gerrit@gerrit.libreoffice.org" target="_blank" rel="noreferrer">gerrit@gerrit.libreoffice.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Jim Raykowski has posted comments on this change. ( <a href="https://gerrit.libreoffice.org/c/core/+/101242" rel="noreferrer noreferrer" target="_blank">https://gerrit.libreoffice.org/c/core/+/101242</a> )<br>
<br>
Change subject: tdf#87963: Add percentage value to new calculated compressed image size<br>
......................................................................<br>
<br>
<br>
Patch Set 2:<br>
<br>
You could make necessary changes by directly editing core/svx/uiconfig/ui/compressgraphicdialog.ui or use Glade <a href="https://glade.gnome.org/" rel="noreferrer noreferrer" target="_blank">https://glade.gnome.org/</a><br>
<br>
<br>
-- <br>
To view, visit <a href="https://gerrit.libreoffice.org/c/core/+/101242" rel="noreferrer noreferrer" target="_blank">https://gerrit.libreoffice.org/c/core/+/101242</a><br>
To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.libreoffice.org/settings" rel="noreferrer noreferrer" target="_blank">https://gerrit.libreoffice.org/settings</a><br>
<br>
Gerrit-Project: core<br>
Gerrit-Branch: master<br>
Gerrit-Change-Id: I5fb87fd4d8cceb38775cb98520c0c7ba1d49bc93<br>
Gerrit-Change-Number: 101242<br>
Gerrit-PatchSet: 2<br>
Gerrit-Owner: Anshu <<a href="mailto:anshukhare50@gmail.com" target="_blank" rel="noreferrer">anshukhare50@gmail.com</a>><br>
Gerrit-Reviewer: Jenkins<br>
Gerrit-Reviewer: Julien Nabet <<a href="mailto:serval2412@yahoo.fr" target="_blank" rel="noreferrer">serval2412@yahoo.fr</a>><br>
Gerrit-CC: Jim Raykowski <<a href="mailto:raykowj@gmail.com" target="_blank" rel="noreferrer">raykowj@gmail.com</a>><br>
Gerrit-CC: Shivam Kumar Singh <<a href="mailto:shivamhere247@gmail.com" target="_blank" rel="noreferrer">shivamhere247@gmail.com</a>><br>
Gerrit-CC: Tomaž Vajngerl <<a href="mailto:quikee@gmail.com" target="_blank" rel="noreferrer">quikee@gmail.com</a>><br>
Gerrit-Comment-Date: Sun, 23 Aug 2020 20:56:01 +0000<br>
Gerrit-HasComments: No<br>
Gerrit-Has-Labels: No<br>
Gerrit-MessageType: comment<br>
</blockquote></div>
</blockquote></div>