Skip to content

Commit 6525542

Browse files
uclaroswonder-sk
authored andcommitted
fix qt6 build
1 parent 9beebf9 commit 6525542

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/3d/qgs3dmapcanvaswidget.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,8 @@ QValidator::State ClassValidator::validate( QString &input, int &pos ) const
10941094
if ( mClasses.contains( n ) )
10951095
{
10961096
input = QStringLiteral( "%1 (%2)" ).arg( n ).arg( mClasses[n] );
1097-
pos = std::min( pos, number.size() );
1097+
if ( pos > number.size() )
1098+
pos = number.size();
10981099
return QValidator::State::Acceptable;
10991100
}
11001101
return QValidator::State::Intermediate;

0 commit comments

Comments
 (0)