style specific fields are now editable&saveable

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@392 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-05-19 00:05:18 +00:00
parent 7230a79d85
commit 936fb57b69
16 changed files with 69 additions and 11 deletions
+1 -2
View File
@@ -96,8 +96,7 @@ void DataViewer::setCard(const CardP& card, bool refresh) {
this->card = card;
stylesheet = new_stylesheet;
setStyles(stylesheet, stylesheet->card_style, &stylesheet->extra_card_style);
card->extra_data.init(stylesheet->extra_card_fields); // make sure extra_data is initialized
setData(card->data, &card->extra_data);
setData(card->data, &card->extraDataFor(*stylesheet));
onChangeSize();
}