Commit c3c8e6fe authored by Piotr Tworek's avatar Piotr Tworek

[embedlite-components] Fix warning about condition not having mathematical meaning.

Spotted when compiling the code with gcc 4.8.3:
 warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning
parent 85eb62d6
......@@ -260,7 +260,7 @@ EmbedTouchListener::ZoomToElement(nsIDOMElement* aElement, int aClickY, bool aCa
zoomed = true;
}
}
else if (elementAspectRatio < viewportAspectRatio < 1) {
else if (elementAspectRatio < viewportAspectRatio && viewportAspectRatio < 1) {
if ((clrect.height < mCssCompositedRect.height && aCanZoomIn) ||
(clrect.height > mCssCompositedRect.height && aCanZoomOut) ) {
mService->ZoomToRect(mTopWinid, clrect.x, clrect.y, clrect.width, clrect.height);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment