Kaydet (Commit) e46e8d19 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Shall this produce a string representation of a number?

On the one hand, the code had apparently treated nIdx as a sal_Unicode character
value ever since its inception in e7189508 "new
querydesign."  On the other hand, the preceding BROW_VIS_ROW case does produce
strings "0" and "1".

Change-Id: Ife6e98ba32146cc469b722fa4f013c12152b5505
üst fa1d3e09
......@@ -2245,7 +2245,7 @@ OUString OSelectionBrowseBox::GetCellContents(sal_Int32 nCellIndex, sal_uInt16 n
sal_Int32 nIdx = m_pOrderCell->GetSelectEntryPos();
if (nIdx == LISTBOX_ENTRY_NOTFOUND)
nIdx = 0;
return OUString(nIdx);
return OUString::number(nIdx);
}
default:
return GetCellText(nCellIndex, nColId);
......
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