diff --git a/sources/autoNum/numerotationcontext.cpp b/sources/autoNum/numerotationcontext.cpp index 62f5d5686..f8d5830d6 100644 --- a/sources/autoNum/numerotationcontext.cpp +++ b/sources/autoNum/numerotationcontext.cpp @@ -57,9 +57,9 @@ bool NumerotationContext::addValue(const QString &type, const QVariant &value, const int increase, const int initialvalue) { - if (!keyIsAcceptable(type) && !value.canConvert(QVariant::String)) + if (!keyIsAcceptable(type) && !value.canConvert()) return false; - if (keyIsNumber(type) && !value.canConvert(QVariant::Int)) + if (keyIsNumber(type) && !value.canConvert()) return false; QString valuestr = value.toString();