mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-14 14:22:35 -06:00
IconDes: Fixed Export Pngs cancel button #674 (thanks klugier)
git-svn-id: svn://ultimatepp.org/upp/trunk@6866 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d426809850
commit
1a3e8d464e
1 changed files with 3 additions and 2 deletions
|
|
@ -199,8 +199,9 @@ void IconDes::InsertFile()
|
|||
void IconDes::ExportPngs()
|
||||
{
|
||||
String dir = SelectDirectory();
|
||||
for(int i = 0; i < GetCount(); i++)
|
||||
PNGEncoder().SaveFile(AppendFileName(dir, GetName(i) + ".png"), GetImage(i));
|
||||
if(!dir.IsEmpty())
|
||||
for(int i = 0; i < GetCount(); i++)
|
||||
PNGEncoder().SaveFile(AppendFileName(dir, GetName(i) + ".png"), GetImage(i));
|
||||
}
|
||||
|
||||
void IconDes::InsertIml()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue