Add method to don't save a element if it seem to be out of the element border (hotspot).

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2244 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2013-06-11 10:30:01 +00:00
parent 20c72d0067
commit a830d61bd8

View File

@@ -977,7 +977,8 @@ void QETElementEditor::slot_reload() {
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());