git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58769
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int excessPixels = totalWidth - maxFinalWidth +
replacementWidth +
marginWidth; // security margin (NEEDED!)
int excessPixels = totalWidth - maxFinalWidth +
replacementWidth +
marginWidth; // security margin (NEEDED!)
+ wxASSERT(excessPixels>0);
// remove characters in excess
size_t initialChar, // index of first char to erase
// remove characters in excess
size_t initialChar, // index of first char to erase
// if there is space for the replacement dots, add them
if (maxFinalWidth > replacementWidth)
// if there is space for the replacement dots, add them
if (maxFinalWidth > replacementWidth)
- ret.append(wxELLIPSE_REPLACEMENT);//.insert(initialChar, wxELLIPSE_REPLACEMENT);
+ ret.insert(initialChar, wxELLIPSE_REPLACEMENT);
}
// if everything was ok, we should have shortened this line
}
// if everything was ok, we should have shortened this line