Skip to content

Commit

Permalink
fix qt6 build
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and wonder-sk committed Feb 14, 2025
1 parent 9beebf9 commit 6525542
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/3d/qgs3dmapcanvaswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,8 @@ QValidator::State ClassValidator::validate( QString &input, int &pos ) const
if ( mClasses.contains( n ) )
{
input = QStringLiteral( "%1 (%2)" ).arg( n ).arg( mClasses[n] );
pos = std::min( pos, number.size() );
if ( pos > number.size() )
pos = number.size();
return QValidator::State::Acceptable;
}
return QValidator::State::Intermediate;
Expand Down

0 comments on commit 6525542

Please sign in to comment.