0 Replies Latest reply on Jul 3, 2010 12:43 PM by johnrellis

    Bug: addPhoto stacking fails silently

    johnrellis Most Valuable Participant

      When you invoke catalog:addPhoto to import a photo and stack it below another, it will fail to report an error if the two photos are in different folders -- but it goes ahead and imports the photo anyway.  Here's example code that shows the problem:


      local LrApplication = import 'LrApplication'
      local LrTasks = import 'LrTasks'
      local catalog = LrApplication.activeCatalog ()
      LrTasks.startAsyncTask (function ()
          catalog:withWriteAccessDo ("Test", function (context)
              local a = catalog:addPhoto (
                  [[c:\users\ellis\desktop\test pics\a\a.jpg]])
              local b = catalog:addPhoto (
                  [[c:\users\ellis\desktop\test pics\b\b.jpg]], a, "below")


      I've submitted this via the Web form as well.