Skip to content
Permalink
Browse files

canorusmlimport: fix incorrect import of foreground color before 0.7.3

  • Loading branch information...
matevz committed Sep 15, 2019
1 parent 511afb3 commit 1bd6d67766bab19dc5a0e2235171a21755abb317
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/import/canorusmlimport.cpp
@@ -145,7 +145,7 @@ bool CACanorusMLImport::fatalError ( const QXmlParseException & exception ) {
bool CACanorusMLImport::startElement( const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& attributes ) {
if ( attributes.value("color")!="" ) {
_color = QVariant(attributes.value("color")).value<QColor>();
if (_version <= QVersionNumber(0,7,3) && _color==QColor(0,0,0)) {
if (_version <= QVersionNumber(0,7,3)) {
// before Canorus 0.7.4, color was incorrectly saved (always #000000)
_color = QColor();
}

0 comments on commit 1bd6d67

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