<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title></title></head><body><p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Hi Lays,<br /></span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">In private part of umldoc.h there is</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">    UMLFolder *m_root[Uml::ModelType::N_MODELTYPES];</span></p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none"> </span></p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">E.g. the global root folder of the Logical View is</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">    m_root[Uml::ModelType::Logical]</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">You can access the global root folders using</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">    UMLFolder *UMLDoc::rootFolder(Uml::ModelType::Enum mt)</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">For a usage example, see umldoc.cpp ca. line 690:</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none"> if (filetype.endsWith(QLatin1String(".mdl"))) {<br />    setUrlUntitled();<br />    m_bTypesAreResolved = false;<br />    status = Import_Rose::loadFromMDL(file);<br />     if (status) {<br />         if (UMLApp::app()->currentView() == 0) {<br />            QString name = createDiagramName(Uml::DiagramType::Class, false);<br />            createDiagram(m_root[Uml::ModelType::Logical], Uml::DiagramType::Class, name);<br />             setCurrentRoot(Uml::ModelType::Logical);<br />         }<br />     }<br /> }<br /></span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Your backtrace shows</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">7.  </span>#2  0x000000000049a11c in UMLDoc::createDiagram (this=0xf349d0, folder=0x0,</p>
<p style="margin: 0px;">           type=Uml::DiagramType::Object, name=..., id="-1")</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">The question is, why is folder=0x0 here.</span></p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">I thought it should be UMLDoc::rootFolder(Uml::ModelType::Logical)</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Perhaps you need to implement something to tell UMLDoc that Object Diagrams shall be located in the Logical View, I'm not sure.</span></p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Try looking at how other diagram types do it.</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Oliver</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">-----Original Message-----</p>
<p style="margin: 0px;">Subject: [umbrello-devel] Help with backtrace</p>
<p style="margin: 0px;">Date: 2016-07-29T01:15:23+0200</p>
<p style="margin: 0px;">From: "Lays Rodrigues" <laysrodriguessilva@gmail.com></p>
<p style="margin: 0px;">To: "Umbrello development list" <umbrello-devel@kde.org>, "Jonathan Riddell" <jr@jriddell.org>, "Ralf Habacker" <ralf.habacker@freenet.de></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-size: small;">Hi!</div>
<div class="gmail_default" style="font-size: small;">I'm needing some help with the followin backtrace:<br /><a href="https://paste.kde.org/pwws8yt1s">https://paste.kde.org/pwws8yt1s</a></div>
<div class="gmail_default" style="font-size: small;">I discovered that the erro happens on the folder->name(), logicaly the folder of this diagram isn't set. But I wasn't able to find where I set this. Any tips?<br /><br /></div>
<div class="gmail_default" style="font-size: small;">thanks!</div>
<br />-- <br />
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><strong style="font-size: 12.8px;"><span style="color: #000000;">Lays Rodrigues</span></strong></div>
<div><strong><span style="background-color: #ffffff; color: #000000;">Software Developer at KDE and Br-Print3D</span></strong></div>
<div><strong><span style="background-color: #ffffff; color: #000000;">Computer Science Student at Federal Fluminense University</span></strong></div>
<div><strong><span style="background-color: #ffffff; color: #000000;"><a style="background-color: #ffffff;" href="http://brprint3d.wordpress.com">brprint3d.wordpress.com</a></span></strong></div>
<div><strong><a href="http://laysrodriguesdev.wordpress.com"><span style="color: #000000;">laysrodriguesdev.wordpress.com</span></a></strong></div>
<div><strong><a style="background-color: #ffffff;" href="http://fb.com/laysrodrigues147"><span style="color: #000000;">fb.com/laysrodrigues147</span></a></strong></div>
<div><strong><span style="background-color: #ffffff; color: #000000;">Telegram @lays147</span></strong></div>
<div><strong><span style="background-color: #ffffff; color: #000000;">IRC lays147</span></strong></div>
<div> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></body></html>