Fix typo.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-04-13 08:43:44 +03:00
parent 3970bbdbc0
commit e26fcb05b8
4 changed files with 6 additions and 6 deletions

View File

@ -267,14 +267,14 @@ bool TMainWindow::LoadFile(const QString &path)
if (mType == MeasurementsType::Multisize) if (mType == MeasurementsType::Multisize)
{ {
VVSTConverter converter(path); VVSTConverter converter(path);
m_curFileFormatVersion = converter.GetCurrentFormatVarsion(); m_curFileFormatVersion = converter.GetCurrentFormatVersion();
m_curFileFormatVersionStr = converter.GetVersionStr(); m_curFileFormatVersionStr = converter.GetVersionStr();
m->setXMLContent(converter.Convert());// Read again after conversion m->setXMLContent(converter.Convert());// Read again after conversion
} }
else else
{ {
VVITConverter converter(path); VVITConverter converter(path);
m_curFileFormatVersion = converter.GetCurrentFormatVarsion(); m_curFileFormatVersion = converter.GetCurrentFormatVersion();
m_curFileFormatVersionStr = converter.GetVersionStr(); m_curFileFormatVersionStr = converter.GetVersionStr();
m->setXMLContent(converter.Convert());// Read again after conversion m->setXMLContent(converter.Convert());// Read again after conversion
} }
@ -2894,7 +2894,7 @@ bool TMainWindow::LoadFromExistingFile(const QString &path)
else else
{ {
VVITConverter converter(path); VVITConverter converter(path);
m_curFileFormatVersion = converter.GetCurrentFormatVarsion(); m_curFileFormatVersion = converter.GetCurrentFormatVersion();
m_curFileFormatVersionStr = converter.GetVersionStr(); m_curFileFormatVersionStr = converter.GetVersionStr();
m->setXMLContent(converter.Convert());// Read again after conversion m->setXMLContent(converter.Convert());// Read again after conversion
} }

View File

@ -4553,7 +4553,7 @@ bool MainWindow::LoadPattern(QString fileName, const QString& customMeasureFile)
try try
{ {
VPatternConverter converter(fileName); VPatternConverter converter(fileName);
m_curFileFormatVersion = converter.GetCurrentFormatVarsion(); m_curFileFormatVersion = converter.GetCurrentFormatVersion();
m_curFileFormatVersionStr = converter.GetVersionStr(); m_curFileFormatVersionStr = converter.GetVersionStr();
doc->setXMLContent(converter.Convert()); doc->setXMLContent(converter.Convert());
if (!customMeasureFile.isEmpty()) if (!customMeasureFile.isEmpty())

View File

@ -87,7 +87,7 @@ QString VAbstractConverter::Convert()
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
int VAbstractConverter::GetCurrentFormatVarsion() const int VAbstractConverter::GetCurrentFormatVersion() const
{ {
return m_ver; return m_ver;
} }

View File

@ -55,7 +55,7 @@ public:
QString Convert(); QString Convert();
int GetCurrentFormatVarsion() const; int GetCurrentFormatVersion() const;
QString GetVersionStr() const; QString GetVersionStr() const;
static int GetVersion(const QString &version); static int GetVersion(const QString &version);