Support ellipsizing of markup text in wxDVC
Fix wxDataViewTextRenderer to at least partially respect ellipsize mode when using markup text. Generic implementation only supports wxELLIPSIZE_END and wxELLIPSIZE_NONE at the moment, but the wxOSX and wxGTK ones have full support.
This commit is contained in:
committed by
Václav Slavík
parent
92a1f643ba
commit
58fc33d7c2
@@ -1095,7 +1095,7 @@ bool wxDataViewTextRenderer::Render(wxRect rect, wxDC *dc, int state)
|
||||
int flags = 0;
|
||||
if ( state & wxDATAVIEW_CELL_SELECTED )
|
||||
flags |= wxCONTROL_SELECTED;
|
||||
m_markupText->RenderItemText(GetView(), *dc, rect, flags);
|
||||
m_markupText->RenderItemText(GetView(), *dc, rect, flags, GetEllipsizeMode());
|
||||
}
|
||||
else
|
||||
#endif // wxUSE_MARKUP
|
||||
|
Reference in New Issue
Block a user