Bug #674

IconDes "Export Pngs" dosen't respect cancel button

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

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

0%

Category:IconDesSpent time:-
Target version:-

Description

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

History

#1 Updated by Miroslav Fidler over 10 years ago

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

Also available in: Atom PDF