Invalid/Unexpected Text object property values

Subject : Unexpected Text-Object property values
Corona Version : 0.5 Build 2009.10.15.1 / Simulator Version 0.3
System Version : 10.5.8
HW Info (your computer specs): 2 GHz Intel Core Duo 4GB Memory
iPhone/iPod generation : iPod Touch 2nd Gen
iPhone/iPod firmware version : 3.1.2

Severity - 1 Showstopper(crash), 2 Critical(hang or failure), 3 Important(doesn’t function as planned),
4 (annoying/aesthetic), 5 (N/A): 3

Reproducibility (Every time, intermittent, only happened once, n/a): Every time

Description :
Text object properties take on unexpected values upon modification. Values outputted are different between Simulator and actual device, but both sets of output seem incorrect.

Steps to reproduce (keep this as simple as possible):

  1. run below code
  2. examine terminal or Organizer Console output

---------8local txt = display.newText( “”, 0, 0, nil, 10 )

print( string.format( " x,y: %d, %d", txt.x, txt.y ) )
print( string.format( " xMin,yMin,xMax,yMax: %d, %d, %d, %d", txt.stageBounds.xMin, txt.stageBounds.yMin, txt.stageBounds.xMax, txt.stageBounds.yMax ) )
print( string.format( " width,height: %d, %d", txt.width, txt.height ) )
print( string.format( " xOrigin,yOrigin: %d, %d", txt.xOrigin, txt.yOrigin ) )
print( string.format( “xReference,yReference: %d, %d”, txt.xReference, txt.yReference ) )

txt.text = “”

print( " " )
print( string.format( " x,y: %d, %d", txt.x, txt.y ) )
print( string.format( " xMin,yMin,xMax,yMax: %d, %d, %d, %d", txt.stageBounds.xMin, txt.stageBounds.yMin, txt.stageBounds.xMax, txt.stageBounds.yMax ) )
print( string.format( " width,height: %d, %d", txt.width, txt.height ) )
print( string.format( " xOrigin,yOrigin: %d, %d", txt.xOrigin, txt.yOrigin ) )
print( string.format( “xReference,yReference: %d, %d”, txt.xReference, txt.yReference ) )

txt.text = “”

print( " " )
print( string.format( " x,y: %d, %d", txt.x, txt.y ) )
print( string.format( " xMin,yMin,xMax,yMax: %d, %d, %d, %d", txt.stageBounds.xMin, txt.stageBounds.yMin, txt.stageBounds.xMax, txt.stageBounds.yMax ) )
print( string.format( " width,height: %d, %d", txt.width, txt.height ) )
print( string.format( " xOrigin,yOrigin: %d, %d", txt.xOrigin, txt.yOrigin ) )
print( string.format( “xReference,yReference: %d, %d”, txt.xReference, txt.yReference ) )

txt.text = “”

print( " " )
print( string.format( " x,y: %d, %d", txt.x, txt.y ) )
print( string.format( " xMin,yMin,xMax,yMax: %d, %d, %d, %d", txt.stageBounds.xMin, txt.stageBounds.yMin, txt.stageBounds.xMax, txt.stageBounds.yMax ) )
print( string.format( " width,height: %d, %d", txt.width, txt.height ) )
print( string.format( " xOrigin,yOrigin: %d, %d", txt.xOrigin, txt.yOrigin ) )
print( string.format( “xReference,yReference: %d, %d”, txt.xReference, txt.yReference ) )
---------8 [import]uid: 1581 topic_id: 185 reply_id: 300185[/import]

Thanks for the info, have submitted this to our bug base. [import]uid: 5 topic_id: 185 reply_id: 219[/import]