Author: fejj
Date: 2007-10-03 16:32:12 -0400 (Wed, 03 Oct 2007)
New Revision: 86831

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/text.cpp
Log:
default style simulation

Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-10-03 20:23:41 UTC (rev 86830)
+++ trunk/moon/src/ChangeLog    2007-10-03 20:32:12 UTC (rev 86831)
@@ -1,6 +1,7 @@
 2007-10-03  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        * text.cpp (TextBlock::SetFontSource): Implemented.
+       (text_init): Default StyleSimulations to None.
 
 2007-10-03  Sebastien Pouliot  <[EMAIL PROTECTED]>
 

Modified: trunk/moon/src/text.cpp
===================================================================
--- trunk/moon/src/text.cpp     2007-10-03 20:23:41 UTC (rev 86830)
+++ trunk/moon/src/text.cpp     2007-10-03 20:32:12 UTC (rev 86831)
@@ -1852,9 +1852,7 @@
 StyleSimulations
 glyphs_get_style_simulations (Glyphs *glyphs)
 {
-       Value *value = glyphs->GetValue (Glyphs::StyleSimulationsProperty);
-       
-       return value ? (StyleSimulations) value->AsInt32 () : 
StyleSimulationsNone;
+       return (StyleSimulations) glyphs->GetValue 
(Glyphs::StyleSimulationsProperty)->AsInt32 ();
 }
 
 void
@@ -1929,6 +1927,6 @@
        Glyphs::IndicesProperty = DependencyObject::Register (Type::GLYPHS, 
"Indices", Type::STRING);
        Glyphs::OriginXProperty = DependencyObject::Register (Type::GLYPHS, 
"OriginX", new Value (0.0));
        Glyphs::OriginYProperty = DependencyObject::Register (Type::GLYPHS, 
"OriginY", new Value (0.0));
-       Glyphs::StyleSimulationsProperty = DependencyObject::Register 
(Type::GLYPHS, "StyleSimulations", Type::INT32);
+       Glyphs::StyleSimulationsProperty = DependencyObject::Register 
(Type::GLYPHS, "StyleSimulations", new Value (StyleSimulationsNone));
        Glyphs::UnicodeStringProperty = DependencyObject::Register 
(Type::GLYPHS, "UnicodeString", Type::STRING);
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to