Fix an assertion condition to assert what it means
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user