[qet] [2244] Add method to don' t save a element if it seem to be out of the element border (hotspot). |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2244
Author: scorpio810
Date: 2013-06-11 12:30:01 +0200 (Tue, 11 Jun 2013)
Log Message:
-----------
Add method to don't save a element if it seem to be out of the element border (hotspot).
Modified Paths:
--------------
trunk/sources/editor/qetelementeditor.cpp
Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp 2013-06-11 10:19:03 UTC (rev 2243)
+++ trunk/sources/editor/qetelementeditor.cpp 2013-06-11 10:30:01 UTC (rev 2244)
@@ -977,7 +977,8 @@
bool QETElementEditor::slot_save() {
// verification avant d'enregistrer le fichier
checkElement();
-
+ // Avertissement #1 : si les parties semblent deborder du cadre de l'element
+ if (!ce_scene -> borderContainsEveryParts()) return(false);
// si on ne connait pas le nom du fichier en cours, enregistrer revient a enregistrer sous
if (opened_from_file) {
if (filename_.isEmpty()) return(slot_saveAsFile());