Skip to content

Commit

Permalink
Merge branch 'ra3xdh-userlib_fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
guitorri committed Jul 4, 2015
2 parents d5974ca + 847bb80 commit 8628f58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qucs/qucs-lib/qucslib_common.h
Expand Up @@ -19,6 +19,7 @@
#define _QUCSLIB_COMMON_H_

#include <QFile>
#include <QFileInfo>
#include <QTextStream>
#include <QDebug>

Expand Down Expand Up @@ -190,6 +191,10 @@ inline int makeModelString (QString libname, QString compname, QString compstrin
}

// construct the library model string
QString full_userlib = QucsSettings.QucsHomeDir.canonicalPath() // check is it user library or not ?
+QDir::convertSeparators ("/user_lib/")+libname;
QFileInfo inf(full_userlib+".lib");
if (inf.exists()) libname = full_userlib;
modelstring = "<Lib " + Prefix + " 1 0 0 " +
QString::number(Text_x) + " " +
QString::number(Text_y) + " 0 0 \"" +
Expand Down

0 comments on commit 8628f58

Please sign in to comment.