mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
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:
parent
47d248a710
commit
8defbb42e3
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue