Skip to content

Commit

Permalink
Repaired breaking @include for LaTeX output
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Aug 30, 2015
1 parent 5dc8371 commit ab861c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/latexgen.cpp
Expand Up @@ -791,9 +791,11 @@ void LatexGenerator::startFile(const char *name,const char *,const char *)
#endif
QCString fileName=name;
relPath = relativePathToRoot(fileName);
m_codeGen.setSourceFileName(stripPath(fileName));
if (fileName.right(4)!=".tex" && fileName.right(4)!=".sty") fileName+=".tex";
startPlainFile(fileName);
m_codeGen.setTextStream(t);
m_codeGen.setRelativePath(relPath);
m_codeGen.setSourceFileName(stripPath(fileName));
}

void LatexGenerator::endFile()
Expand Down
2 changes: 1 addition & 1 deletion src/lodepng.cpp
Expand Up @@ -2347,7 +2347,7 @@ unsigned LodePNG_InfoRaw_copy(LodePNG_InfoRaw* dest, const LodePNG_InfoRaw* sour
LodePNG_InfoRaw_cleanup(dest);
*dest = *source;
LodePNG_InfoColor_init(&dest->color);
error = LodePNG_InfoColor_copy(&dest->color, &source->color); if(error) return error;
error = LodePNG_InfoColor_copy(&dest->color, &source->color);
return error;
}

Expand Down

0 comments on commit ab861c1

Please sign in to comment.