fix : Button_Layer_add(-1) => Add_layer(Main.backups, 1)

it was making the GUI lost his way when called from the Drawing mode menu
This commit is contained in:
Thomas Bernard
2018-11-28 14:26:32 +01:00
parent f753452e50
commit 740983a719
2 changed files with 10 additions and 3 deletions

View File

@@ -181,6 +181,7 @@ void Button_Layer_remove(int btn)
{
Hide_cursor();
/// @todo forbid to drop layer in CPC MODE5
if (Main.backups->Pages->Nb_layers > 1)
{
// Backup with unchanged layers