Skip to content

Commit

Permalink
Merge pull request #360 from cryos/file-path-issue
Browse files Browse the repository at this point in the history
Fix a bug with file paths and movies
  • Loading branch information
cryos authored Aug 22, 2018
2 parents 06aa7d7 + ea895eb commit c22000b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion avogadro/qtplugins/playertool/playertool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void PlayerTool::recordMovie()

QFileInfo fileInfo(baseName);
if (!fileInfo.suffix().isEmpty())
baseName = fileInfo.canonicalPath() + "/" + fileInfo.baseName();
baseName = fileInfo.absolutePath() + "/" + fileInfo.baseName();

bool bonding = m_dynamicBonding->isChecked();
int numberLength = static_cast<int>(
Expand Down
2 changes: 1 addition & 1 deletion avogadro/qtplugins/surfaces/surfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void Surfaces::recordMovie()

QFileInfo fileInfo(baseName);
if (!fileInfo.suffix().isEmpty())
baseName = fileInfo.canonicalPath() + "/" + fileInfo.baseName();
baseName = fileInfo.absolutePath() + "/" + fileInfo.baseName();

m_baseFileName = baseName;
m_numberLength = static_cast<int>(
Expand Down

0 comments on commit c22000b

Please sign in to comment.