Re: [Libreoffice] Rectangle width

2011-08-31 Thread Jan Holesovsky
Di Dmitry On 2011-08-23 at 13:23 +0400, Dmitry. A. Ashkadov wrote: > For example, there is small bug corresponding to this problem. See > function «ImplDrawDropdownArrow» in «toolbox.cxx» («vcl» module). > A lines > long x = rDropDownRect.Left() + (rDropDownRect.getWidth() - > width)/2; >

Re: [Libreoffice] Rectangle width

2011-08-23 Thread Dmitry. A. Ashkadov
Hello! For example, there is small bug corresponding to this problem. See function «ImplDrawDropdownArrow» in «toolbox.cxx» («vcl» module). A lines     long x = rDropDownRect.Left() + (rDropDownRect.getWidth() - width)/2;     long y = rDropDownRect.Top() + (r

Re: [Libreoffice] Rectangle width

2011-08-18 Thread Michael Meeks
On Wed, 2011-08-17 at 23:08 +0200, Thorsten Behrens wrote: > Hi Dmitry - yes, the two different methods are surely confusing. As > for the "wrong value", that very much depends on the mental model of > rectangles you're using. In a discrete geometry world (aka "pixel"), > the GetWidth() is correct

Re: [Libreoffice] Rectangle width

2011-08-17 Thread Thorsten Behrens
Dmitry. A. Ashkadov wrote: > I found out that class Rectangle contains two different finctions > getWidth() and GetWidth(). The first returns wrong value. > Hi Dmitry - yes, the two different methods are surely confusing. As for the "wrong value", that very much depends on the mental model of rect

[Libreoffice] Rectangle width

2011-08-15 Thread Dmitry. A. Ashkadov
Hello! I found out that class Rectangle contains two different finctions getWidth() and GetWidth(). The first returns wrong value. -- Best Regards, Dmitry <>___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.