Kaydet (Commit) 9ba1f8e1 authored tarafından Michael Stahl's avatar Michael Stahl

fdo#83798: sw: fix generation of ToX with chapter numbers

(regression from 0a1b1511
 and 26259e0c)

Change-Id: Idf9a6f5620c9efe62d2824df1688b30d13a4782e
üst 54981ce9
......@@ -52,7 +52,7 @@ bool sortTabHasNoToxSourcesOrFirstToxSourceHasNoNode(const SwTOXSortTabBase& sor
if (sortTab.aTOXSources.empty()) {
return true;
}
if (sortTab.aTOXSources.at(0).pNd != NULL) {
if (sortTab.aTOXSources.at(0).pNd == nullptr) {
return true;
}
return false;
......@@ -70,7 +70,7 @@ ToxTextGenerator::GetNumStringOfFirstNode( const SwTOXSortTabBase& rBase, bool b
}
OUString sRet;
if (!rBase.pTxtMark) { // only if it's not a Mark
if (rBase.pTxtMark) { // only if it's not a Mark
return sRet;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment