Fixed a crash when opening the Texture Set editor

This commit is contained in:
codeimp 2009-05-12 08:01:50 +00:00
parent 953cfbd195
commit 63c22e5d2d

View file

@ -102,7 +102,8 @@ namespace CodeImp.DoomBuilder.Controls
}
// Size of preview images
list.TileSize = new Size(General.Map.Data.Previews.MaxImageWidth + 26, General.Map.Data.Previews.MaxImageHeight + 26);
if(General.Map != null)
list.TileSize = new Size(General.Map.Data.Previews.MaxImageWidth + 26, General.Map.Data.Previews.MaxImageHeight + 26);
}
// This cleans everything up