[OpenMap Users] error handling multiple mouse modes

From: Matt Brennan <openmap_at_classforge.com>
Date: Fri, 06 Jul 2007 20:21:58 +0930

hey there,
           in OMGraphicsHandler layer, there is a bug when handling
multiple mouse modes from props:

in public void setProperties(String prefix, Properties props):

--
   String mmString = props.getProperty(realPrefix + MouseModesProperty);
     if (mmString != null) {
        Vector mmv = PropUtils.parseSpacedMarkers(mmString);
          if (mmv.size() > 0) {
              String[] mm = new String[mmv.size()];
              Iterator it = mmv.iterator();
              int i = 0;
              while (it.hasNext()) {
                   mm[i] = (String) it.next();
              }
              setMouseModeIDsForEvents(mm);
           }
      }
--
the array index 'i' fails to increment... small beer but important if a 
layer has more than one mouse mode...
cheers,
   matt
-- 
-- Matt Brennan || classForge Pty Ltd || 0403 355 602
--
--
[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 Fri Jul 06 2007 - 07:00:19 EDT

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