Skip to content

Commit

Permalink
Fix #10608 (impossible to add a new column in attribute table)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jun 17, 2014
1 parent 1e94fd5 commit c27e731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsvectordataprovider.cpp
Expand Up @@ -281,7 +281,7 @@ bool QgsVectorDataProvider::supportedType( const QgsField &field ) const
{
// source length limited
if ( mNativeTypes[i].mMinLen > -1 && mNativeTypes[i].mMaxLen > -1 &&
( field.length() < mNativeTypes[i].mMinLen || field.length() < mNativeTypes[i].mMaxLen ) )
( field.length() < mNativeTypes[i].mMinLen || field.length() > mNativeTypes[i].mMaxLen ) )
{
// source length exceeds destination limits
continue;
Expand All @@ -301,7 +301,7 @@ bool QgsVectorDataProvider::supportedType( const QgsField &field ) const
{
// source precision unlimited / n/a
if ( mNativeTypes[i].mMinPrec > -1 && mNativeTypes[i].mMaxPrec > -1 &&
( field.precision() < mNativeTypes[i].mMinPrec || field.precision() < mNativeTypes[i].mMaxPrec ) )
( field.precision() < mNativeTypes[i].mMinPrec || field.precision() > mNativeTypes[i].mMaxPrec ) )
{
// source precision exceeds destination limits
continue;
Expand Down

0 comments on commit c27e731

Please sign in to comment.