2 Replies Latest reply on Sep 17, 2009 3:34 AM by René Mølsted

    [CS4 JS] geometricBounds error

    René Mølsted Level 1

      Hi all,

      Some times myBounds[0] reports 2.27373675443232e-13 instead of 0 as exprected. If I check in InDesign it infact 0.

      Has anyone seen this before?

       

      Script:

      var myRectangle = app.documents.item(0).textFrames.itemByID(ItemID);
      var myBounds = myRectangle.geometricBounds;
      if (myBounds[0] == 0) {
           // Do stuff
      }
      

       

      --

      René