Kaydet (Commit) ee84eb96 authored tarafından Matteo Casalin's avatar Matteo Casalin

Do not compare the same OUString twice

Change-Id: Id915a41e3cc50720d36955da9aa2c7efa6c9034c
üst d6fea203
......@@ -2448,8 +2448,9 @@ IMPL_LINK(SwTOXEntryTabPage, StyleSelectHdl, ListBox*, pBox)
{
OUString sEntry = pBox->GetSelectEntry();
const sal_uInt16 nId = (sal_uInt16)(sal_IntPtr)pBox->GetEntryData(pBox->GetSelectEntryPos());
m_pEditStylePB->Enable(sEntry != sNoCharStyle);
if(sEntry == sNoCharStyle)
const bool bEqualsNoCharStyle = sEntry == sNoCharStyle;
m_pEditStylePB->Enable(!bEqualsNoCharStyle);
if (bEqualsNoCharStyle)
sEntry = "";
Control* pCtrl = m_pTokenWIN->GetActiveControl();
OSL_ENSURE(pCtrl, "no active control?");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment