Avoid nested DC assert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3946,6 +3946,8 @@ bool wxListMainWindow::GetItemPosition(long item, wxPoint& pos) const
|
|||||||
|
|
||||||
void wxListMainWindow::RecalculatePositions(bool noRefresh)
|
void wxListMainWindow::RecalculatePositions(bool noRefresh)
|
||||||
{
|
{
|
||||||
|
const int lineHeight = GetLineHeight();
|
||||||
|
|
||||||
wxClientDC dc( this );
|
wxClientDC dc( this );
|
||||||
dc.SetFont( GetFont() );
|
dc.SetFont( GetFont() );
|
||||||
|
|
||||||
@@ -3979,8 +3981,6 @@ void wxListMainWindow::RecalculatePositions(bool noRefresh)
|
|||||||
clientHeight;
|
clientHeight;
|
||||||
GetSize( &clientWidth, &clientHeight );
|
GetSize( &clientWidth, &clientHeight );
|
||||||
|
|
||||||
const int lineHeight = GetLineHeight();
|
|
||||||
|
|
||||||
if ( InReportView() )
|
if ( InReportView() )
|
||||||
{
|
{
|
||||||
// all lines have the same height and we scroll one line per step
|
// all lines have the same height and we scroll one line per step
|
||||||
|
Reference in New Issue
Block a user