View Issue Details

IDProjectCategoryView StatusLast Update
0000066QElectroTechElement Editorpublic2013-06-12 12:27
Reporterscorpio810 Assigned Toblack_sun  
PriorityurgentSeverityblockReproducibilityalways
Status resolvedResolutionopen 
PlatformallOSallOS Versionrev < 2239
Product VersionSVN/trunk 
Target VersionSVN/trunkFixed in VersionSVN/trunk 
Summary0000066: don't save symbol if hotspost is framed
DescriptionIf 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]
Tags65

Relationships

has duplicate 0000065 resolvedscorpio810 Fail to open project: Thank you for your patience 

Activities

scorpio810

2013-06-10 16:06

administrator   ~0000094

Last edited: 2013-06-11 16:57

View 2 revisions

<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>

scorpio810

2013-06-11 16:59

administrator   ~0000097

Last edited: 2013-06-12 12:24

View 3 revisions

<!--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-->

scorpio810

2013-06-12 12:27

administrator   ~0000098

Last edited: 2013-06-12 12:28

View 2 revisions

http://listengine.tuxfamily.org/lists.tuxfamily.org/qet/2013/06/msg00070.html


http://listengine.tuxfamily.org/lists.tuxfamily.org/qet/2013/06/msg00069.html



Issue History

Date Modified Username Field Change
2013-06-10 13:36 scorpio810 New Issue
2013-06-10 13:36 scorpio810 Status new => assigned
2013-06-10 13:36 scorpio810 Assigned To => scorpio810
2013-06-10 13:36 scorpio810 Summary dont't save symbol if hotspost is framed => don't save symbol if hotspost is framed
2013-06-10 13:53 scorpio810 Description Updated View Revisions
2013-06-10 14:40 scorpio810 Assigned To scorpio810 => black_sun
2013-06-10 16:06 scorpio810 Note Added: 0000094
2013-06-10 18:57 scorpio810 Tag Attached: 65
2013-06-10 18:58 scorpio810 Relationship added has duplicate 0000065
2013-06-11 16:57 scorpio810 Note Edited: 0000094 View Revisions
2013-06-11 16:59 scorpio810 Note Added: 0000097
2013-06-11 17:01 scorpio810 Note Edited: 0000097 View Revisions
2013-06-12 12:23 scorpio810 Status assigned => resolved
2013-06-12 12:23 scorpio810 Fixed in Version => SVN/trunk
2013-06-12 12:23 scorpio810 Description Updated View Revisions
2013-06-12 12:24 scorpio810 Note Edited: 0000097 View Revisions
2013-06-12 12:27 scorpio810 Note Added: 0000098
2013-06-12 12:28 scorpio810 Note Edited: 0000098 View Revisions