From 1b96799791469ac38ac224466f2591c0310b0fb0 Mon Sep 17 00:00:00 2001 From: isn Date: Wed, 18 Nov 2015 11:49:02 +0300 Subject: [PATCH] refs #718 --- src/HYDROGUI/HYDROGUI_ExportFileOp.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx b/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx index e4bb9ee9..436c7c02 100644 --- a/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx @@ -131,10 +131,12 @@ void HYDROGUI_ExportFileOp::startOperation() 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 -- 2.39.2