[Libufo-commits] ufo-0.5/include/ufo/util urectangle.hpp,1.16,1.17
Status: Beta
Brought to you by:
schmidtjf
|
From: Johannes S. <sch...@us...> - 2005-09-15 10:10:56
|
Update of /cvsroot/libufo/ufo-0.5/include/ufo/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21153/include/ufo/util Modified Files: urectangle.hpp Log Message: Fixed URectangle::intersect which fixes clip bounds and the UListBox bug. Index: urectangle.hpp =================================================================== RCS file: /cvsroot/libufo/ufo-0.5/include/ufo/util/urectangle.hpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** urectangle.hpp 22 Jun 2005 12:26:43 -0000 1.16 --- urectangle.hpp 15 Sep 2005 10:10:42 -0000 1.17 *************** *** 274,278 **** int y2 = std::min(y + h, rect.y + rect.h); ! setBounds(x1, y1, x2 - x1 + 1, y2 - y1 + 1); w = std::max(w, 0); h = std::max(h, 0); --- 274,278 ---- int y2 = std::min(y + h, rect.y + rect.h); ! setBounds(x1, y1, x2 - x1, y2 - y1); w = std::max(w, 0); h = std::max(h, 0); |