Fix a crash in toolbox control icons generation.

[DEVELOPMENT ENVIRONMENT]
* BUG: Fix a crash in toolbox control icons generation.
This commit is contained in:
gambas 2020-05-26 22:20:37 +02:00
parent ac91967c36
commit e3a7d38597
2 changed files with 4 additions and 3 deletions

View File

@ -128,7 +128,7 @@ Static Public Sub GetIcon(sClass As String, sComp As String, Optional iSize As I
Endif
If iSize Then
If hImage.Width <> iSize Then hImage = Image.Stretch(iSize, iSize)
If hImage.Width <> iSize Then hImage = hImage.Stretch(iSize, iSize)
Endif
If Application.DarkTheme Then hImage = hImage.Invert(True)

View File

@ -16,7 +16,7 @@
Spacing = True
{ btnUndo Button
MoveScaled(1,0,16,4)
Text = ("Revert")
Text = ("Reset")
Picture = Picture["icon:/small/undo"]
}
{ Spring1 Spring
@ -29,7 +29,8 @@
}
{ btnCancel Button
MoveScaled(43,0,16,4)
Text = ("Cancel")
Text = ("Close")
Picture = Picture["icon:/small/close"]
Cancel = True
}
}