Skip to content

Commit de932a7

Browse files
committed
[x11] prevent usage of invalid id in GetWindowID
Appears in TASImage
1 parent 238b93f commit de932a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

graf2d/x11/src/TGX11.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,7 @@ void TGX11::GetTextExtent(UInt_t &w, UInt_t &h, char *mess)
12131213

12141214
Window_t TGX11::GetWindowID(int wid)
12151215
{
1216+
if (fWindows.count(wid) == 0) return 0;
12161217
return (Window_t) fWindows[wid]->fWindow;
12171218
}
12181219

0 commit comments

Comments
 (0)