QDoc: Return correct path when quoting example files.
When the exampledirs qdocconf variable is . the first 2 characters of the file to quote from were being cut off, since there was a string comparison between the size of the strings with and without './' Change-Id: Iede54b5f77ec8a7530c608908f08e7eb4351f0f1 Reviewed-by: Martin Smith <martin.smith@nokia.com>
This commit is contained in:
parent
85c3f6a74d
commit
d4672da264
@ -2509,6 +2509,8 @@ void CppCodeParser::createExampleFileNodes(FakeNode *fake)
|
||||
}
|
||||
|
||||
int sizeOfBoringPartOfName = fullPath.size() - proFileName.size();
|
||||
if (fullPath.startsWith("./"))
|
||||
sizeOfBoringPartOfName = sizeOfBoringPartOfName - 2;
|
||||
fullPath.truncate(fullPath.lastIndexOf('/'));
|
||||
|
||||
QStringList exampleFiles = Config::getFilesHere(fullPath,exampleNameFilter);
|
||||
|
Loading…
Reference in New Issue
Block a user