Skip to content

Commit

Permalink
Merge pull request #45 from ogamespec/main
Browse files Browse the repository at this point in the history
Update FormMain.cs
  • Loading branch information
ogamespec authored Apr 26, 2023
2 parents 5942831 + 2b7909a commit 5b1d533
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Deroute/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ private void EntityBox1_OnSelectionBox(object sender, PointF orig, PointF sizef,
{
addCellFromSelectionToolStripMenuItem.Checked = false;

if (entityBox1.Image == null)
{
MessageBox.Show("You must first load the original image (File -> Load Image)", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}

if (cells_editor != null)
{
cells_editor.Focus();
Expand Down

0 comments on commit 5b1d533

Please sign in to comment.