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:
@@ -2283,14 +2283,11 @@ wxEllipsizeMode wxDataViewRenderer::GetEllipsizeMode() const
|
|||||||
return wxELLIPSIZE_NONE;
|
return wxELLIPSIZE_NONE;
|
||||||
if ( flags & kDataBrowserTruncateTextAtStart )
|
if ( flags & kDataBrowserTruncateTextAtStart )
|
||||||
return wxELLIPSIZE_START;
|
return wxELLIPSIZE_START;
|
||||||
if ( flags & kDataBrowserTruncateTextMiddle )
|
|
||||||
return wxELLIPSIZE_MIDDLE;
|
|
||||||
if ( flags & kDataBrowserTruncateTextAtEnd )
|
if ( flags & kDataBrowserTruncateTextAtEnd )
|
||||||
return wxELLIPSIZE_END;
|
return wxELLIPSIZE_END;
|
||||||
|
|
||||||
wxFAIL_MSG( "unknown flags" );
|
// kDataBrowserTruncateTextMiddle == 0 so there is no need to test for it
|
||||||
|
return wxELLIPSIZE_MIDDLE;
|
||||||
return wxELLIPSIZE_NONE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDataViewRenderer::SetNativeData(wxDataViewRendererNativeData* newNativeDataPtr)
|
void wxDataViewRenderer::SetNativeData(wxDataViewRendererNativeData* newNativeDataPtr)
|
||||||
|
Reference in New Issue
Block a user