[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Dec 20 01:18:14 UTC 2018


 sw/source/filter/ww8/wrtw8nds.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit d41d2ea9aa55624fab4eba4fa24f125f0d9a25fb
Author:     Justin Luth <justin_luth at sil.org>
AuthorDate: Mon Dec 17 14:19:45 2018 +0300
Commit:     Justin Luth <justin_luth at sil.org>
CommitDate: Thu Dec 20 02:17:49 2018 +0100

    sw filter/ww8 code cleanup: remove duplicate variable
    
    Change-Id: I2be36438ca1ab0646aa8f89dfcb317d6a162b072
    Reviewed-on: https://gerrit.libreoffice.org/65266
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <justin_luth at sil.org>

diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx
index 02e946af9a9d..393c1d2e8afb 100644
--- a/sw/source/filter/ww8/wrtw8nds.cxx
+++ b/sw/source/filter/ww8/wrtw8nds.cxx
@@ -3046,9 +3046,7 @@ void MSWordExportBase::OutputSectionNode( const SwSectionNode& rSectionNode )
             ReplaceCr( msword::PageBreak ); // Indicator for Page/Section-Break
 
             // Get the page in use at the top of this section
-            SwNodeIndex aIdxTmp(rSectionNode, 1);
-            const SwPageDesc *pCurrent =
-                SwPageDesc::GetPageDescOfNode(aIdxTmp.GetNode());
+            const SwPageDesc *pCurrent = SwPageDesc::GetPageDescOfNode(rNd);
             if (!pCurrent)
                 pCurrent = m_pCurrentPageDesc;
 


More information about the Libreoffice-commits mailing list