Select correct ink type in InkTypeField

This commit is contained in:
David Capello 2014-03-08 21:00:14 -03:00
parent d780e90784
commit 30e26e2a3a

View File

@ -282,7 +282,14 @@ public:
}
void setInkType(InkType inkType) {
setSelectedItemIndex((int)inkType);
int index = 0;
switch (inkType) {
case kDefaultInk: index = 0; break;
case kPutAlphaInk: index = 1; break;
}
setSelectedItemIndex(index);
}
protected: