6464
6565Doc::Doc (QObject* parent, int universes)
6666 : QObject(parent)
67- , m_wsPath (" " )
67+ , m_workspacePath (" " )
6868 , m_fixtureDefCache(new QLCFixtureDefCache)
6969 , m_modifiersCache(new QLCModifiersCache)
7070 , m_rgbScriptsCache(new RGBScriptsCache(this ))
@@ -197,12 +197,12 @@ void Doc::clearContents()
197197
198198void Doc::setWorkspacePath (QString path)
199199{
200- m_wsPath = path;
200+ m_workspacePath = path;
201201}
202202
203- QString Doc::getWorkspacePath () const
203+ QString Doc::workspacePath () const
204204{
205- return m_wsPath ;
205+ return m_workspacePath ;
206206}
207207
208208QString Doc::normalizeComponentPath (const QString& filePath) const
@@ -212,9 +212,9 @@ QString Doc::normalizeComponentPath(const QString& filePath) const
212212
213213 QFileInfo f (filePath);
214214
215- if (f.absolutePath ().startsWith (getWorkspacePath ()))
215+ if (f.absolutePath ().startsWith (workspacePath ()))
216216 {
217- return QDir (getWorkspacePath ()).relativeFilePath (f.absoluteFilePath ());
217+ return QDir (workspacePath ()).relativeFilePath (f.absoluteFilePath ());
218218 }
219219 else
220220 {
@@ -227,7 +227,7 @@ QString Doc::denormalizeComponentPath(const QString& filePath) const
227227 if (filePath.isEmpty ())
228228 return filePath;
229229
230- return QFileInfo (QDir (getWorkspacePath ()), filePath).absoluteFilePath ();
230+ return QFileInfo (QDir (workspacePath ()), filePath).absoluteFilePath ();
231231}
232232
233233/* ****************************************************************************
@@ -592,6 +592,13 @@ bool Doc::replaceFixtures(QList<Fixture*> newFixturesList)
592592 newFixture->setForcedHTPChannels (fixture->forcedHTPChannels ());
593593 newFixture->setForcedLTPChannels (fixture->forcedLTPChannels ());
594594
595+ for (quint32 s = 0 ; s < fixture->channels (); s++)
596+ {
597+ ChannelModifier *chMod = fixture->channelModifier (s);
598+ if (chMod != NULL )
599+ newFixture->setChannelModifier (s, chMod);
600+ }
601+
595602 m_fixtures.insert (id, newFixture);
596603 m_fixturesListCacheUpToDate = false ;
597604
0 commit comments