3 Replies Latest reply on Aug 4, 2010 8:25 AM by johnrellis

    Bug: Infinite "Invalid numeric entry" loop with numeric edit_fields

    johnrellis Most Valuable Participant

      In SDK 3.0, a numeric edit_field control can easily get into an infinite loop of popping up an "Invalid numeric entry" message, and the user is forced to kill LR using the task manager.

       

      To reproduce:

       

      1. Run the test plugin below.

       

      2. Click in another (non-Lightroom) window. Depending on the arrangement of windows, the "Invalid numeric entry" message pops up below the main LR window, invisible to the user.

       

      3. Click back in the edit_field of the plugin.

       

      At this point, the "Invalid numeric entry" message is visible, and clicking OK just brings it up again.  You've got to use the task manager to kill Lightroom.

       

      The plugin code:

       

      local LrDialogs = import 'LrDialogs'
      local f = import 'LrView'.osFactory()
      LrDialogs.presentModalDialog {
          title = "Test",
          contents = f:edit_field {min = 1}}

       

      I've submitted this via the Web form but posted it here in case others encounter similar symptoms.