mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix a widget size check bug in nsWindow::CaptureWidgetOnScreen. (bug 1173117 part 3, r=mattwoodrow)
This commit is contained in:
parent
a944807bc3
commit
80d42470d3
@ -7603,7 +7603,7 @@ bool nsWindow::CaptureWidgetOnScreen(RefPtr<DrawTarget> aDT)
|
||||
|
||||
nsRefPtr<gfxASurface> surf = new gfxWindowsSurface(dc, flags);
|
||||
IntSize size(surf->GetSize().width, surf->GetSize().height);
|
||||
if (size.width < 0 || size.height < 0) {
|
||||
if (size.width <= 0 || size.height <= 0) {
|
||||
::ReleaseDC(mWnd, dc);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user