interesting zoomLevel arithmetic [message #179474] |
Wed, 27 April 2005 13:25  |
Eclipse User |
|
|
|
Originally posted by: christian.sell.netcologne.de
Hello,
I just discovered that changing the zoom level on an empty diagram
yields strange results. I switched zoom levels in the following order:
page - width - height - page
and saw the following percentages displayed in the combo box field:
62500% - 53375000% - 33359375000% - 20849609375000%
and at infinitum. According to my investigations, the reason lies in the
method
ZoomManager.getFitXZoomLevel(int which),
which does not take into account that
FreeformFigure.getFreeformExtent().union(0, 0) is always (1, 1).
I suppose this should be a bug report, right?
christian
|
|
|
Re: interesting zoomLevel arithmetic [message #179911 is a reply to message #179474] |
Mon, 02 May 2005 02:52  |
Eclipse User |
|
|
|
Yes, please open a bug report.
"Christian Sell" <christian.sell@netcologne.de> wrote in message
news:d4oi5b$jig$1@news.eclipse.org...
> Hello,
>
> I just discovered that changing the zoom level on an empty diagram
> yields strange results. I switched zoom levels in the following order:
>
> page - width - height - page
>
> and saw the following percentages displayed in the combo box field:
>
> 62500% - 53375000% - 33359375000% - 20849609375000%
>
> and at infinitum. According to my investigations, the reason lies in the
> method
>
> ZoomManager.getFitXZoomLevel(int which),
>
> which does not take into account that
> FreeformFigure.getFreeformExtent().union(0, 0) is always (1, 1).
>
> I suppose this should be a bug report, right?
>
> christian
|
|
|
Powered by
FUDForum. Page generated in 0.16750 seconds