Skip to content
Permalink
Browse files

Fix #10608 (impossible to add a new column in attribute table)

  • Loading branch information
wonder-sk committed Jun 17, 2014
1 parent 1e94fd5 commit c27e731ece57739eeb937f154818c9d0e000f0f2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsvectordataprovider.cpp
@@ -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;
@@ -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;

0 comments on commit c27e731

Please sign in to comment.
You can’t perform that action at this time.