]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.cpp
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / TocBackend.cpp
index cf40c4f8180e53ec873a00a94417beb62c6be4dd..4c5bdb00f363610aa42a7e845bbdd00b3582d9d1 100644 (file)
@@ -125,16 +125,17 @@ void TocBackend::updateItem(ParConstIterator const & par_it)
                                break;
                        Paragraph const & par =
                                *static_cast<InsetOptArg&>(inset).paragraphs().begin();
-                       if (!toc_item->par_it_->getLabelstring().empty())
-                               tocstring = toc_item->par_it_->getLabelstring() + ' ';
+                       if (!toc_item->par_it_->labelString().empty())
+                               tocstring = toc_item->par_it_->labelString() + ' ';
                        tocstring += par.asString(*buffer_, false);
                        break;
                }
        }
 
        int const toclevel = toc_item->par_it_->layout()->toclevel;
-       if (toclevel != Layout::NOT_IN_TOC && toclevel >= min_toclevel
-               && tocstring.empty()) 
+       if (toclevel != Layout::NOT_IN_TOC
+           && toclevel >= min_toclevel
+               && tocstring.empty())
                        tocstring = toc_item->par_it_->asString(*buffer_, true);
 
        const_cast<TocItem &>(*toc_item).str_ = tocstring;
@@ -169,8 +170,8 @@ void TocBackend::update()
                                        break;
                                Paragraph const & par =
                                        *static_cast<InsetOptArg&>(inset).paragraphs().begin();
-                               if (!pit->getLabelstring().empty())
-                                       tocstring = pit->getLabelstring() + ' ';
+                               if (!pit->labelString().empty())
+                                       tocstring = pit->labelString() + ' ';
                                tocstring += par.asString(*buffer_, false);
                                break;
                        }