Bug #674

IconDes "Export Pngs" dosen't respect cancel button

Added by Zbigniew Rebacz about 10 years ago. Updated about 10 years ago.

Status:ApprovedStart date:01/31/2014
Priority:NormalDue date:
Assignee:Zbigniew Rebacz% Done:


Category:IconDesSpent time:-
Target version:-


It seems that "Export Pngs" dosen't respect cancel button. It is funny when you cancel operation and yours home directory is full of pngs files :). I enclose patched source file(Pure version). But I would like to explain what I changed with commentary(IconDes::ExportPngs() - line 199):

void IconDes::ExportPngs()
    String dir = SelectDirectory();
    if(!dir.IsEmpty()) // <- Additional check
        for(int i = 0; i < GetCount(); i++)
            PNGEncoder().SaveFile(AppendFileName(dir, GetName(i) + ".png"), GetImage(i));

BTW, It is possible to export one certain icon instead of all in IconDes.

List.cpp Magnifier (8.76 KB) Zbigniew Rebacz, 01/31/2014 09:58 PM


#1 Updated by Miroslav Fidler about 10 years ago

  • Status changed from Patch ready to Approved
  • Assignee changed from Miroslav Fidler to Zbigniew Rebacz

Also available in: Atom PDF