else
return;
+ QStringList SortedListOfAttr = anAttrNames.toList();
+ SortedListOfAttr.sort();
//
Handle_HYDROData_LandCoverMap aLCM = Handle(HYDROData_LandCoverMap)::DownCast( aSeq(1) );
bool IsLinear = aLCM->CheckLinear();
- HYDROGUI_ExportLandCoverMapDlg aDlg( module()->getApp()->desktop(), IsLinear, anAttrNames.toList());
+ HYDROGUI_ExportLandCoverMapDlg aDlg( module()->getApp()->desktop(), IsLinear, SortedListOfAttr);
if ( aDlg.exec() == HYDROGUI_ExportLandCoverMapDlg::Accepted )
{
//In our case : aSeq.Size() == 1
//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