if (!wsc_ctx->impl->preedit_attrlist.empty()) {
if (mbs.length ()) {
- uint32_t preedit_style;
+ uint32_t preedit_style = WL_TEXT_INPUT_PREEDIT_STYLE_DEFAULT;
int start_index, end_index;
int wlen = wsc_ctx->impl->preedit_string.length ();
AttributeList::const_iterator i;
case SCIM_ATTR_DECORATE_BGCOLOR2:
case SCIM_ATTR_DECORATE_BGCOLOR3:
case SCIM_ATTR_DECORATE_BGCOLOR4:
- preedit_style = WL_TEXT_INPUT_PREEDIT_STYLE_DEFAULT;
- break;
default:
+ preedit_style = WL_TEXT_INPUT_PREEDIT_STYLE_DEFAULT;
break;
}