Re: [OpenMap Users] Small bug in OMTest with setting FontSizer

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 3 Dec 2008 17:11:32 -0500

Hi Humphrey,

Thanks for sending in the bug report and fix, I'm updated the code
base with your suggestion.

Thanks again,

Don

On Dec 2, 2008, at 8:01 AM, Humphrey Clerx wrote:

> Hello,
>
> I recently started using the OMText together with a FontSizer.
>
> When I looked at the implementation of the setFontSizer() method, I
> noticed there is a small bug that effectively doesn't change the
> font when setting a new FontSizer:
>
> Current code (from version 5.0b):
> public void setFontSizer(FontSizer fs) {
> Font bf = getFont();
> if (fontSizer != null) {
> bf = fontSizer.getFont();
> }
>
> fontSizer = fs;
> setFont(bf);
> }
>
> in my opinion this should be changed to:
>
> public void setFontSizer(FontSizer fs) {
> Font bf = getFont();
> if (fs != null) {
> bf = fs.getFont();
> }
>
> fontSizer = fs;
> setFont(bf);
> }
>
> P.S.: When is (the next) version 5.0 made available?
>
> Kind regards,
> Humphrey.
>
> --
> In the mountains of truth, you never climb in vain - Nietzsche
> #-------------------------------------------------------------
> \_O
> ,__/>
> <"
> '

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Dec 03 2008 - 17:12:11 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT