Fix an assertion condition to assert what it means

This commit is contained in:
Ehsan Akhgari 2012-02-22 11:29:21 -05:00
parent ccc128b291
commit 2bbce0f0de

View File

@ -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;