mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix #10608 (impossible to add a new column in attribute table)
This commit is contained in:
parent
1e94fd5dfd
commit
c27e731ece
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user