Fixed: in some cases incorrect window bounds were used when saving active window screenshot when several child windows were open.

This commit is contained in:
MaxED 2014-10-31 07:42:53 +00:00
parent 47d248a710
commit 8defbb42e3

View file

@ -2911,10 +2911,10 @@ namespace CodeImp.DoomBuilder.Windows
if(activeControlOnly)
{
if (!this.IsActiveWindow && OwnedForms.Length > 0)
if (Form.ActiveForm != null && Form.ActiveForm != this)
{
name = mapname + " (" + OwnedForms[0].Text + ") at ";
bounds = OwnedForms[0].Bounds;
name = mapname + " (" + Form.ActiveForm.Text + ") at ";
bounds = Form.ActiveForm.Bounds;
}
else
{