Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 Unable to set negative coordinates

closed
nobody
None
5
2010-11-04
2010-10-30
chengsun
No

In the "Set Properties" window, I am unable to type negative coordinates in to the Dimensions or Pos fields (Size field as well, but that can never be negative): it does not respond to the - key. If the window was in a negative coordinate before the dialog opens, then it displays fine, but I cannot move it to a negative position if it is initially positive.

Discussion

  • xtal256
    xtal256
    2010-11-04

    Fixed. I just had to change the field validation to accept the minus character. Although i am not sure why it accepted a minus if the field initially displays a negative number.

    fyi, the regex for validation was:
    \(?\s*-?[0-9]+\s*,\s*-?[0-9]+\s*\)?
    and i changed it to:
    \(?\s*-?[0-9]+\s*,\s*-?[0-9]+\s*\)?

     
  • xtal256
    xtal256
    2010-11-04

    Made a mistake in my last post. The first regex should have been:
    \(?\s*[0-9]+\s*,\s*[0-9]+\s*\)?

    In other words, i just added -?

     
  • xtal256
    xtal256
    2010-11-04

    • status: open --> closed-fixed