Base: escape quotes in Quantity::getSafeUserString
fix #12204 and fix #12206
This commit is contained in:
committed by
Chris Hennes
parent
fe1ee63f2f
commit
592b31eb7b
@@ -28,6 +28,7 @@
|
||||
#include <array>
|
||||
#endif
|
||||
|
||||
#include <Base/Tools.h>
|
||||
#include "Quantity.h"
|
||||
#include "Exception.h"
|
||||
#include "UnitsApi.h"
|
||||
@@ -255,6 +256,8 @@ QString Quantity::getSafeUserString() const
|
||||
retString = QStringLiteral("%1 %2").arg(this->myValue).arg(this->getUnit().getString());
|
||||
}
|
||||
}
|
||||
retString =
|
||||
QString::fromStdString(Base::Tools::escapeQuotesFromString(retString.toStdString()));
|
||||
return retString;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user