[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/khtml/html
From: Maks Orlovich <maksim () kde ! org>
Date: 2008-06-25 20:32:42
Message-ID: 1214425962.424323.16036.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 824454 by orlovich:
Apply patch from Frank Reininghaus to fix handling of image map
rectangles with corners reversed.
BUG:13860
M +3 -1 html_imageimpl.cpp
--- trunk/KDE/kdelibs/khtml/html/html_imageimpl.cpp #824453:824454
@@ -581,7 +581,9 @@
int y0 = m_coords[1].minWidth(height_);
int x1 = m_coords[2].minWidth(width_);
int y1 = m_coords[3].minWidth(height_);
- region = QRegion(x0,y0,x1-x0,y1-y0);
+ // use qMin () and qAbs () to make sure that this works for any pair
+ // of opposite corners (x0,y0) and (x1,y1)
+ region = QRegion(qMin(x0,x1),qMin(y0,y1),qAbs(x1-x0),qAbs(y1-y0));
}
else if (shape==Default)
region = QRegion(0,0,width_,height_);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic