Fix wxDataViewRenderer::GetEllipsizeMode() for kDataBrowserTruncateTextMiddle.
The value of this constant is 0 so don't test for it using operator "&", it's just the default if no others are specified. Fixes assert on startup of the dataview sample. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
200c18cc6c
commit
c32eeaccc3
@ -2283,14 +2283,11 @@ wxEllipsizeMode wxDataViewRenderer::GetEllipsizeMode() const
|
||||
return wxELLIPSIZE_NONE;
|
||||
if ( flags & kDataBrowserTruncateTextAtStart )
|
||||
return wxELLIPSIZE_START;
|
||||
if ( flags & kDataBrowserTruncateTextMiddle )
|
||||
return wxELLIPSIZE_MIDDLE;
|
||||
if ( flags & kDataBrowserTruncateTextAtEnd )
|
||||
return wxELLIPSIZE_END;
|
||||
|
||||
wxFAIL_MSG( "unknown flags" );
|
||||
|
||||
return wxELLIPSIZE_NONE;
|
||||
// kDataBrowserTruncateTextMiddle == 0 so there is no need to test for it
|
||||
return wxELLIPSIZE_MIDDLE;
|
||||
}
|
||||
|
||||
void wxDataViewRenderer::SetNativeData(wxDataViewRendererNativeData* newNativeDataPtr)
|
||||
|
Loading…
Reference in New Issue
Block a user