Two attribute type fixes by CuteAlien.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@951 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2007-09-14 07:45:14 +00:00
parent b8eb707b79
commit faecfd46e3
2 changed files with 4 additions and 3 deletions

View File

@ -819,7 +819,7 @@ public:
setEnabled(in->getAttributeAsBool("Enabled"));
IsTabStop = in->getAttributeAsBool("TabStop");
IsTabGroup = in->getAttributeAsBool("TabGroup");
TabOrder = in->getAttributeAsBool("TabOrder");
TabOrder = in->getAttributeAsInt("TabOrder");
core::position2di p = in->getAttributeAsPosition2d("MaxSize");
setMaxSize(core::dimension2di(p.X,p.Y));

View File

@ -432,7 +432,7 @@ void CGUIStaticText::deserializeAttributes(io::IAttributes* in, io::SAttributeRe
IGUIStaticText::deserializeAttributes(in,options);
Border = in->getAttributeAsBool("Border");
OverrideColor = in->getAttributeAsBool("OverrideColor");
OverrideColor = in->getAttributeAsColor("OverrideColor");
enableOverrideColor(in->getAttributeAsBool("OverrideColorEnabled"));
setWordWrap(in->getAttributeAsBool("WordWrap"));
@ -449,3 +449,4 @@ void CGUIStaticText::deserializeAttributes(io::IAttributes* in, io::SAttributeRe
} // end namespace irr
#endif // _IRR_COMPILE_WITH_GUI_