mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix an assertion condition to assert what it means
This commit is contained in:
parent
ccc128b291
commit
2bbce0f0de
@ -447,7 +447,7 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
|
||||
nsCOMPtr<nsIDOMWindow> domWindow;
|
||||
mBrowserApp->GetWindowForTab(curEvent->MetaState(), getter_AddRefs(domWindow));
|
||||
nsTArray<nsIntPoint> points = curEvent->Points();
|
||||
NS_ASSERTION(points.Length() != 2, "Screenshot event does not have enough coordinates");
|
||||
NS_ASSERTION(points.Length() == 2, "Screenshot event does not have enough coordinates");
|
||||
if (domWindow)
|
||||
bridge->TakeScreenshot(domWindow, 0, 0, points[0].x, points[0].y, points[1].x, points[1].y, curEvent->MetaState());
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user