]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #761
authorisn <isn@opencascade.com>
Fri, 27 Nov 2015 09:34:16 +0000 (12:34 +0300)
committerisn <isn@opencascade.com>
Fri, 27 Nov 2015 09:34:16 +0000 (12:34 +0300)
src/HYDROGUI/HYDROGUI_ExportFileOp.cxx

index 436c7c02535c930880537e2145a2d979cf70190f..b256ba4f28d70a4b9376bde57cff4aef3c63ecd7 100644 (file)
@@ -159,7 +159,7 @@ void HYDROGUI_ExportFileOp::startOperation()
           //Even if attribute-checkbox is unchecked, the .dbf-file should be removed. 
           //otherwise it may be used with wrong .shp-file. This is an incorrect behaivor.
           remove (aDBFFileName.toStdString().c_str());
-          bool bToSaveAttrInfo = aDlg.getAttrCheckBoxState();
+          bool bToSaveAttrInfo = aDlg.getAttrCheckBoxState() && !aDlg.getCurrentItem().isEmpty();
           if (bToSaveAttrInfo)
           {
             //export attribute info