Author: pbr
Date: 2007-11-02 07:25:24 -0700 (Fri, 02 Nov 2007)
New Revision: 7093
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
Log:
Change 20071031-Philip-4 by [EMAIL PROTECTED] on 2007-10-31 14:32:52 EDT
in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Fix reference to DEFAULT_SIZE in LzTextSprite.as
New Features:
Bugs Fixed: LPP-4952
Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
The reference for DEFAULT_SIZE should be this.DEFAULT_SIZE and not
LzText.DEFAULT_SIZE.
Tests:
See test below. The message is NaN for an unpatched system. A valid number is
displayed once patched.
<canvas>
<font name="Helvetica" src="helmetr.ttf" />
<simplelayout axis="y" spacing="10"/>
<text name="message"/>
<text font="Helvetica" multiline="true">
Text using Helvetica
<handler name="oninit">
message.format("textheight = %g", this.sprite.lineheight);
</handler>
</text>
</canvas>
Files:
M WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071031-Philip-4.tar
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as 2007-11-02
14:25:03 UTC (rev 7092)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as 2007-11-02
14:25:24 UTC (rev 7093)
@@ -583,7 +583,7 @@
if (this.font != null) {
this.lineheight = this.font.leading + ( this.font.height *
- this.fontsize/
LzText.DEFAULT_SIZE );
+ this.fontsize/
this.DEFAULT_SIZE );
}
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins