Fix unfetchability of TXT_FRAMESTYLE in buttons and icons.

This commit is contained in:
2014-12-06 02:17:12 -05:00
parent da20a7402c
commit eea1624b0d
2 changed files with 2 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ void cButton::setFormat(eFormat prop, short val) throw(xUnsupportedProp){
short cButton::getFormat(eFormat prop) throw(xUnsupportedProp){
if(prop == TXT_WRAP) return wrapLabel;
else if(prop == TXT_FRAMESTYLE) return frameStyle;
else throw xUnsupportedProp(prop);
}

View File

@@ -93,6 +93,7 @@ void cPict::setFormat(eFormat prop, short val) throw(xUnsupportedProp){
short cPict::getFormat(eFormat prop) throw(xUnsupportedProp){
if(prop == TXT_FRAME) return drawFramed;
else if(prop == TXT_FRAMESTYLE) return frameStyle;
else throw xUnsupportedProp(prop);
}