View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000066 | QElectroTech | website | public | 2013-06-10 13:36 | 2021-02-15 00:48 |
Reporter | scorpio810_mantis | Assigned To | black_sun | ||
Priority | urgent | Severity | block | Reproducibility | always |
Status | resolved | Resolution | open | ||
Platform | all | OS | all | OS Version | rev < 2239 |
Summary | 0000066: don't save symbol if hotspost is framed | ||||
Description | If a make a new symbol in outdoor off hostpost it crash Qet when i place to diagram >>> qelectrotech[12695]: segfault at 4 ip 00007f0bb69ee6e3 sp 00007fffbf74b388 error 4 in libQtCore.so.4.8.4[7f0bb6978000+2ca000] | ||||
Tags | 65 | ||||
has duplicate | 0000065 | resolved | scorpio810_mantis | Fail to open project: Thank you for your patience |
|
<code>// dimensions et hotspot : ces attributs doivent etre presents et valides int w, h, hot_x, hot_y; if ( !QET::attributeIsAnInteger(root, QString("width"), &w) ||\ !QET::attributeIsAnInteger(root, QString("height"), &h) ||\ !QET::attributeIsAnInteger(root, QString("hotspot_x"), &hot_x) ||\ !QET::attributeIsAnInteger(root, QString("hotspot_y"), &hot_y) ) { if (error_message) { *error_message = tr("Les dimensions ou le point de saisie ne sont pas valides.", "error message"); } return(false); }</code> |
|
<!--StartFragment--><code><span style="color: 0000080;">/**</span> <span style="color: #c0c0c0;"> </span><span style="color: 0000080;">Enregistre</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">l'element</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">en</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">cours</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">d'edition.</span> <span style="color: #c0c0c0;"> </span><span style="color: 0000080;">Si</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">le</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">nom</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">du</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">fichier</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">en</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">cours</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">n'est</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">pas</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">connu,</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">cette</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">methode</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">equivaut</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">a</span> <span style="color: #c0c0c0;"> </span><span style="color: 0000080;">l'action</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">"Enregistrer</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">sous"</span> <span style="color: #c0c0c0;"> </span><span style="color: #0000ff;">@see</span><span style="color: #c0c0c0;"> </span><span style="color: 0000080;">slot_saveAs()</span> <span style="color: 0000080;">*/</span> <span style="color: #808000;">bool</span><span style="color: #c0c0c0;"> </span><span style="color: #800080;">QETElementEditor</span>::slot_save()<span style="color: #c0c0c0;"> </span>{ <span style="color: #c0c0c0;"> </span><span style="color: #008000;">//</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">verification</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">avant</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">d'enregistrer</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">le</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">fichier</span> <span style="color: #c0c0c0;"> </span>checkElement(); <span style="color: #c0c0c0;"> </span><span style="color: #008000;">//</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">Avertissement</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">0000001</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">:</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">si</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">les</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">parties</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">semblent</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">deborder</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">du</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">cadre</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">de</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">l'element</span> <span style="color: #c0c0c0;"> </span><span style="color: #808000;">if</span><span style="color: #c0c0c0;"> </span>(!<span style="color: #800000;">ce_scene</span><span style="color: #c0c0c0;"> </span>-><span style="color: #c0c0c0;"> </span>borderContainsEveryParts())<span style="color: #c0c0c0;"> </span><span style="color: #808000;">return</span>(<span style="color: #808000;">false</span>); <span style="color: #c0c0c0;"> </span><span style="color: #008000;">//</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">si</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">on</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">ne</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">connait</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">pas</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">le</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">nom</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">du</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">fichier</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">en</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">cours,</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">enregistrer</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">revient</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">a</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">enregistrer</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">sous</span> <span style="color: #c0c0c0;"> </span><span style="color: #808000;">if</span><span style="color: #c0c0c0;"> </span>(<span style="color: #800000;">opened_from_file</span>)<span style="color: #c0c0c0;"> </span>{ <span style="color: #c0c0c0;"> </span><span style="color: #808000;">if</span><span style="color: #c0c0c0;"> </span>(<span style="color: #800000;">filename_</span>.isEmpty())<span style="color: #c0c0c0;"> </span><span style="color: #808000;">return</span>(slot_saveAsFile()); <span style="color: #c0c0c0;"> </span><span style="color: #008000;">//</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">sinon</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">on</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">enregistre</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">dans</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">le</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">nom</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">de</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">fichier</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">connu</span> <span style="color: #c0c0c0;"> </span><span style="color: #808000;">bool</span><span style="color: #c0c0c0;"> </span>result_save<span style="color: #c0c0c0;"> </span>=<span style="color: #c0c0c0;"> </span>toFile(<span style="color: #800000;">filename_</span>); <span style="color: #c0c0c0;"> </span><span style="color: #808000;">if</span><span style="color: #c0c0c0;"> </span>(result_save)<span style="color: #c0c0c0;"> </span><span style="color: #800000;">ce_scene</span><span style="color: #c0c0c0;"> </span>-><span style="color: #c0c0c0;"> </span>undoStack().setClean(); <span style="color: #c0c0c0;"> </span><span style="color: #808000;">return</span>(result_save); <span style="color: #c0c0c0;"> </span>}<span style="color: #c0c0c0;"> </span><span style="color: #808000;">else</span><span style="color: #c0c0c0;"> </span>{ <span style="color: #c0c0c0;"> </span><span style="color: #808000;">if</span><span style="color: #c0c0c0;"> </span>(<span style="color: #800000;">location_</span>.isNull())<span style="color: #c0c0c0;"> </span><span style="color: #808000;">return</span>(slot_saveAs()); <span style="color: #c0c0c0;"> </span><span style="color: #008000;">//</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">sinon</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">on</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">enregistre</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">a</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">l'emplacement</span><span style="color: #c0c0c0;"> </span><span style="color: #008000;">connu</span> <span style="color: #c0c0c0;"> </span><span style="color: #808000;">bool</span><span style="color: #c0c0c0;"> </span>result_save<span style="color: #c0c0c0;"> </span>=<span style="color: #c0c0c0;"> </span>toLocation(<span style="color: #800000;">location_</span>); <span style="color: #c0c0c0;"> </span><span style="color: #808000;">if</span><span style="color: #c0c0c0;"> </span>(result_save)<span style="color: #c0c0c0;"> </span><span style="color: #800000;">ce_scene</span><span style="color: #c0c0c0;"> </span>-><span style="color: #c0c0c0;"> </span>undoStack().setClean(); <span style="color: #c0c0c0;"> </span><span style="color: #808000;">return</span>(result_save); <span style="color: #c0c0c0;"> </span>} }</code><!--EndFragment--> |
|
http://listengine.tuxfamily.org/lists.tuxfamily.org/qet/2013/06/msg00070.html http://listengine.tuxfamily.org/lists.tuxfamily.org/qet/2013/06/msg00069.html |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-06-10 13:36 | scorpio810_mantis | New Issue | |
2013-06-10 13:36 | scorpio810_mantis | Status | new => assigned |
2013-06-10 13:36 | scorpio810_mantis | Assigned To | => scorpio810_mantis |
2013-06-10 13:36 | scorpio810_mantis | Summary | dont't save symbol if hotspost is framed => don't save symbol if hotspost is framed |
2013-06-10 13:53 | scorpio810_mantis | Description Updated | |
2013-06-10 14:40 | scorpio810_mantis | Assigned To | scorpio810_mantis => black_sun |
2013-06-10 16:06 | scorpio810_mantis | Note Added: 0000094 | |
2013-06-10 18:57 | scorpio810_mantis | Tag Attached: 65 | |
2013-06-10 18:58 | scorpio810_mantis | Relationship added | has duplicate 0000065 |
2013-06-11 16:57 | scorpio810_mantis | Note Edited: 0000094 | |
2013-06-11 16:59 | scorpio810_mantis | Note Added: 0000097 | |
2013-06-11 17:01 | scorpio810_mantis | Note Edited: 0000097 | |
2013-06-12 12:23 | scorpio810_mantis | Status | assigned => resolved |
2013-06-12 12:23 | scorpio810_mantis | Fixed in Version | => SVN/trunk |
2013-06-12 12:23 | scorpio810_mantis | Description Updated | |
2013-06-12 12:24 | scorpio810_mantis | Note Edited: 0000097 | |
2013-06-12 12:27 | scorpio810_mantis | Note Added: 0000098 | |
2013-06-12 12:28 | scorpio810_mantis | Note Edited: 0000098 | |
2021-02-15 00:48 |
|
Category | Element Editor => website |