[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - 8 commits - avmedia/source download.lst external/python3 hwpfilter/source sc/source sd/source svx/source sw/source

Julien Nabet serval2412 at yahoo.fr
Mon Aug 21 07:02:22 UTC 2017


 avmedia/source/gstreamer/gstplayer.cxx             |    2 
 download.lst                                       |    4 -
 external/python3/UnpackedTarball_python3.mk        |    4 -
 external/python3/python-3.5.4-msvc-disable.patch.1 |    7 +
 external/python3/python-3.5.4-ssl.patch.1          |   83 +++++++++++----------
 hwpfilter/source/drawing.h                         |    2 
 hwpfilter/source/hiodev.cxx                        |    3 
 sc/source/core/tool/interpr7.cxx                   |    9 ++
 sd/source/ui/dlg/prltempl.cxx                      |    1 
 svx/source/table/svdotable.cxx                     |    1 
 sw/source/core/txtnode/ndtxt.cxx                   |    4 +
 sw/source/ui/index/swuiidxmrk.cxx                  |    4 -
 12 files changed, 72 insertions(+), 52 deletions(-)

New commits:
commit dfc0f39d32665051d9010ff25b686e88215925b0
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Aug 12 12:34:46 2017 +0200

    tdf#109104: respect RFC3986 for newlines in ScEncodeURL
    
    Quotation of RFC3986:
    A percent-encoded octet is encoded as a character
    triplet, consisting of the percent character "%" followed by the two
    hexadecimal digits representing that octet's numeric value
    So test the length of the return of OString::number and add "0" if needed
    
    ScEncodeURL was added with:
    https://cgit.freedesktop.org/libreoffice/core/commit/?id=25434372bf56e0ebdb7e7d47ab3c14c68211509f
    
    Thank you to Bele (the bugtracker reporter) for code pointer!
    
    Change-Id: I8df102eb38b31933c6ebb15bb25c125b423f722b
    Reviewed-on: https://gerrit.libreoffice.org/41086
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>
    (cherry picked from commit dabba2e3368c2e2ae4ab03ddcfc667e13f89841d)
    Reviewed-on: https://gerrit.libreoffice.org/41279
    (cherry picked from commit fdaee404f3216441d6b78636c0defae580f26034)

diff --git a/sc/source/core/tool/interpr7.cxx b/sc/source/core/tool/interpr7.cxx
index b226717c2935..48a34b3ece36 100644
--- a/sc/source/core/tool/interpr7.cxx
+++ b/sc/source/core/tool/interpr7.cxx
@@ -325,7 +325,14 @@ void ScInterpreter::ScEncodeURL()
             else
             {
                 aUrlBuf.append( '%' );
-                aUrlBuf.append( OString::number( static_cast<unsigned char>( c ), 16 ).toAsciiUpperCase() );
+                OString convertedChar = OString::number( static_cast<unsigned char>( c ), 16 ).toAsciiUpperCase();
+                // RFC 3986 indicates:
+                // "A percent-encoded octet is encoded as a character triplet,
+                // consisting of the percent character "%" followed by the two hexadecimal digits
+                // representing that octet's numeric value"
+                if (convertedChar.getLength() == 1)
+                    aUrlBuf.append("0");
+                aUrlBuf.append(convertedChar);
             }
         }
         PushString( OUString::fromUtf8( aUrlBuf.makeStringAndClear() ) );
commit f8440ce333c5055ddac3ae3dffb2a5b107c4ead1
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date:   Sun Aug 13 17:31:20 2017 +0200

    tdf#85909: EDITING: Native tables visualization not refreshed
    
    ... after changes to borders
    
    Regression from:
    26b06662ebc3e5d664400bc95c39d6220de03136
    "avoid repeated table layouting (fdo#75622)"
    
    It was a performance change, but it was a bad idea to avoid
    table layout refresh on this way
    
    Anyway I added a call for border update even if not all
    the table layouting is done. I tested with the test
    document attached to fdo#75622, import time seems similar
    so it does not cause perfromance issue to do that.
    
    Change-Id: I7c6fcf105c89233512390dc2ecbd111a32f6779a
    Reviewed-on: https://gerrit.libreoffice.org/41116
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
    Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>
    (cherry picked from commit 3f72879a8e54e18f3ad587f7284b84db592c8d1a)
    Reviewed-on: https://gerrit.libreoffice.org/41120
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
    (cherry picked from commit 296a15773bec15c6aedec1a6be7b938fb60adc58)

diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index 99b9a4c9f941..1120dca3faa8 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -725,6 +725,7 @@ void SdrTableObjImpl::LayoutTable( Rectangle& rArea, bool bFitWidth, bool bFitHe
         else
         {
             rArea = lastLayoutResultRectangle;
+            mpLayouter->UpdateBorderLayout();
         }
     }
 }
commit bbb66d863416b48d452b3b2cb99c6f886bb41c99
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jul 19 09:54:20 2017 +0100

    gtk3: make video playback fill playback window
    
    Change-Id: I43f2f77889856dc6a3b0c3a3775826dbb000be7a
    Reviewed-on: https://gerrit.libreoffice.org/40169
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    (cherry picked from commit ed6c78abb8445cff51cc05118ce1f6311ed5a535)
    Reviewed-on: https://gerrit.libreoffice.org/40366
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
    (cherry picked from commit f667445ceb1e533a2b4bef67923ff702872a119b)

diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx
index 37b76626315b..00c66a8ef9fd 100644
--- a/avmedia/source/gstreamer/gstplayer.cxx
+++ b/avmedia/source/gstreamer/gstplayer.cxx
@@ -934,6 +934,8 @@ uno::Reference< ::media::XPlayerWindow > SAL_CALL Player::createPlayerWindow( co
                 {
                     mbUseGtkSink = true;
                     g_object_get(pVideosink, "widget", &mpGtkWidget, nullptr);
+                    gtk_widget_set_vexpand(mpGtkWidget, true);
+                    gtk_widget_set_hexpand(mpGtkWidget, true);
                     GtkWidget *pParent = static_cast<GtkWidget*>(pEnvData->pWidget);
                     gtk_container_add (GTK_CONTAINER(pParent), mpGtkWidget);
 
commit 73c9355ccba49ac5c4ec62275ac914d8f99059b7
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date:   Mon Aug 14 06:36:34 2017 +0200

    tdf#109863: Crash while trying to set pattern fill in Impress
    
    This line was missed to add in this commit:
    76585ae33f3ca75c05c0ccbf6a621b6e2d42bc00
    
    Change-Id: I2fb8c90b34ecbdfdd2bdc62adaa5e0a0d074ce33
    Reviewed-on: https://gerrit.libreoffice.org/41129
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
    (cherry picked from commit e980d98dea38e71379f3ec02ab03fbff15022e5c)
    Reviewed-on: https://gerrit.libreoffice.org/41131
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
    (cherry picked from commit 798d9e301d520b2a94cf0cf125ffa96e226e78b0)

diff --git a/sd/source/ui/dlg/prltempl.cxx b/sd/source/ui/dlg/prltempl.cxx
index 7c254907be91..0e28ee5e9ab5 100644
--- a/sd/source/ui/dlg/prltempl.cxx
+++ b/sd/source/ui/dlg/prltempl.cxx
@@ -243,6 +243,7 @@ void SdPresLayoutTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
         aSet.Put (SvxGradientListItem(pGradientList,SID_GRADIENT_LIST));
         aSet.Put (SvxHatchListItem(pHatchingList,SID_HATCH_LIST));
         aSet.Put (SvxBitmapListItem(pBitmapList,SID_BITMAP_LIST));
+        aSet.Put (SvxPatternListItem(pPatternList,SID_PATTERN_LIST));
         aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,0));
         aSet.Put (SfxUInt16Item(SID_DLG_TYPE,1));
         aSet.Put (SfxUInt16Item(SID_TABPAGE_POS,0));
commit 231c147e0402b8559cde553a718cd020df0ad1f2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Aug 11 13:10:29 2017 +0100

    Resolves: tdf#111571 crash on restarting writer with modeless biblio dialog
    
    Change-Id: I2663f84c28721f61c1ed7c8d92a228cafa8f1177
    Reviewed-on: https://gerrit.libreoffice.org/41038
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>
    (cherry picked from commit 21bf73a005f38fc4970ee916dce89ac05c60e729)

diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx
index e8d4ef2b492c..29e9e1f928ef 100644
--- a/sw/source/ui/index/swuiidxmrk.cxx
+++ b/sw/source/ui/index/swuiidxmrk.cxx
@@ -1636,8 +1636,8 @@ SwAuthMarkFloatDlg::SwAuthMarkFloatDlg(SfxBindings* _pBindings,
 {
     Initialize(pInfo);
     SwWrtShell* pWrtShell = ::GetActiveWrtShell();
-    OSL_ENSURE(pWrtShell, "No shell?");
-    m_aContent.ReInitDlg(*pWrtShell);
+    if (pWrtShell)
+        m_aContent.ReInitDlg(*pWrtShell);
 }
 
 void SwAuthMarkFloatDlg::Activate()
commit 99eb4fdbe02f1122c4ec87b575b61a49fa1ba4c2
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Aug 11 10:58:43 2017 +0200

    tdf#105705 sw: fix another case of bookmarks becoming un-sorted
    
    The loop in SwTextNode::Update() that reassigns bookmark end positions
    away from the node to a temporary SwIndexReg can stop prematurely in a
    particular situation where there is a bookmark that is expanded and with
    both mark positions at the critical "rPos" insertion position, and also
    both their SwIndexes consecutive in the SwIndexReg::m_pFirst
    linked-list.
    
    What happens then is that the iteration gets to the first of the 2
    consecutive positions of the bookmark, then calls GetMarkEnd() on the
    mark, which happens to return the other position, which is already
    stored in the "next" local variable.
    
    That other position is then moved to aTmpIdxReg, and in the next loop
    iteration GetNext() is null as it is the last one in aTmpIdxReg and the
    loop terminates.
    
    Thus various bookmark end positions don't get preserved, or the
    bAtLeastOneExpandedBookmarkAtInsertionPosition doesn't get set, either
    of which can cause the bookmark array to lose its sort order.
    
    This was found playing around with Zotero 4.0.29.10, while switching
    between different citation styles.
    
    (regression from 6a5dbe73537642b06bcde782118a34b4593d17eb)
    
    Change-Id: Ia35ce0656bcb2d6af7ea189458af3942ff83e4da
    (cherry picked from commit f78aadea74b99ba71f930c7cf52352da9ee965e9)
    Reviewed-on: https://gerrit.libreoffice.org/41016
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    (cherry picked from commit 3a54c06ff6f7367fe35b7509cc266d60498e3440)

diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 97198e980e56..d5947f32c856 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -1091,6 +1091,10 @@ void SwTextNode::Update(
                 if( this == &pEnd->nNode.GetNode() &&
                     rPos.GetIndex() == rEndIdx.GetIndex() )
                 {
+                    if (&rEndIdx == next) // nasty corner case:
+                    {   // don't switch to iterating aTmpIdxReg!
+                        next = rEndIdx.GetNext();
+                    }
                     rEndIdx.Assign( &aTmpIdxReg, rEndIdx.GetIndex() );
                     bAtLeastOneBookmarkMoved = true;
                 }
commit 80fa3893360e548c58195619f474604a5387bd1b
Author: David Ostrovsky <david at ostrovsky.org>
Date:   Thu Aug 10 00:18:12 2017 +0200

    python3: upgrade to release 3.5.4
    
    Change-Id: I9300b2ec1e1dcedbcbfe793e1450166af1bf1944
    Reviewed-on: https://gerrit.libreoffice.org/40944
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>
    (cherry picked from commit f0e68d4feaaa43f7450432ad1ebd92c2b572400f)
    Reviewed-on: https://gerrit.libreoffice.org/41028
    (cherry picked from commit f18ea813967c1b35a8977bd193c19857f61f7a8c)

diff --git a/download.lst b/download.lst
index a6af0c4369b0..f145dd6879e6 100644
--- a/download.lst
+++ b/download.lst
@@ -146,8 +146,8 @@ ifeq ($(PYTHON_VERSION_MINOR),3)
 export PYTHON_MD5SUM := 803a75927f8f241ca78633890c798021
 export PYTHON_TARBALL := Python-3.3.5.tgz
 else
-export PYTHON_MD5SUM := 6192f0e45f02575590760e68c621a488
-export PYTHON_TARBALL := Python-3.5.3.tgz
+export PYTHON_MD5SUM := 2ed4802b7a2a7e40d2e797272bf388ec
+export PYTHON_TARBALL := Python-3.5.4.tgz
 endif
 
 export RAPTOR_TARBALL := a39f6c07ddb20d7dd2ff1f95fa21e2cd-raptor2-2.0.15.tar.gz
diff --git a/external/python3/UnpackedTarball_python3.mk b/external/python3/UnpackedTarball_python3.mk
index f84b98299b8c..20192af318bf 100644
--- a/external/python3/UnpackedTarball_python3.mk
+++ b/external/python3/UnpackedTarball_python3.mk
@@ -19,8 +19,8 @@ $(eval $(call gb_UnpackedTarball_add_patches,python3,\
 	external/python3/i100492-freebsd.patch.1 \
 	$(if $(filter AIX,$(OS)),external/python3/python-3.3.3-aix.patch.1) \
 	external/python3/python-3.3.0-darwin.patch.1 \
-	external/python3/python-3.3.0-ssl.patch.1 \
-	external/python3/python-3.3.0-msvc-disable.patch.1 \
+	external/python3/python-3.5.4-ssl.patch.1 \
+	external/python3/python-3.5.4-msvc-disable.patch.1 \
 	external/python3/python-3.3.0-i42553.patch.2 \
 	external/python3/python-3.3.0-pythreadstate.patch.1 \
 	external/python3/python-3.3.0-clang.patch.1 \
diff --git a/external/python3/python-3.3.0-msvc-disable.patch.1 b/external/python3/python-3.5.4-msvc-disable.patch.1
similarity index 95%
rename from external/python3/python-3.3.0-msvc-disable.patch.1
rename to external/python3/python-3.5.4-msvc-disable.patch.1
index c571c5c4e878..54b2a5f46540 100644
--- a/external/python3/python-3.3.0-msvc-disable.patch.1
+++ b/external/python3/python-3.5.4-msvc-disable.patch.1
@@ -1,8 +1,8 @@
 Disable some stuff LO does not need, especially stuff with external dependencies
 
 diff -ru python3.orig/PCbuild/pcbuild.sln python3/PCbuild/pcbuild.sln
---- python3.orig/PCbuild/pcbuild.sln	2015-07-26 17:43:52.262528695 +0200
-+++ python3/PCbuild/pcbuild.sln	2015-07-26 18:00:18.438594901 +0200
+--- python3.orig/PCbuild/pcbuild.sln	2017-08-10 00:04:44.359879894 +0200
++++ python3/PCbuild/pcbuild.sln	2017-08-10 00:13:51.179873748 +0200
 @@ -12,8 +12,6 @@
  EndProject
  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pythoncore", "pythoncore.vcxproj", "{CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}"
@@ -45,7 +45,7 @@ diff -ru python3.orig/PCbuild/pcbuild.sln python3/PCbuild/pcbuild.sln
  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_multiprocessing", "_multiprocessing.vcxproj", "{9E48B300-37D1-11DD-8C41-005056C00008}"
  EndProject
  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "python3dll", "python3dll.vcxproj", "{885D4898-D08D-4091-9C40-C700CFE3FC5A}"
-@@ -58,12 +58,6 @@
+@@ -80,12 +64,6 @@
  EndProject
  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_testmultiphase", "_testmultiphase.vcxproj", "{16BFE6F0-22EF-40B5-B831-7E937119EF10}"
  EndProject
@@ -58,3 +58,4 @@ diff -ru python3.orig/PCbuild/pcbuild.sln python3/PCbuild/pcbuild.sln
  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pyshellext", "pyshellext.vcxproj", "{0F6EE4A4-C75F-4578-B4B3-2D64F4B9B782}"
  EndProject
  Global
+Only in python3/PCbuild: pcbuild.sln~
diff --git a/external/python3/python-3.3.0-ssl.patch.1 b/external/python3/python-3.5.4-ssl.patch.1
similarity index 80%
rename from external/python3/python-3.3.0-ssl.patch.1
rename to external/python3/python-3.5.4-ssl.patch.1
index c4bc117f5558..beb6fe38882f 100644
--- a/external/python3/python-3.3.0-ssl.patch.1
+++ b/external/python3/python-3.5.4-ssl.patch.1
@@ -1,11 +1,11 @@
 -*- Mode: diff -*-
 
-Tweak SSL build to find OpenSSL in solver & not build it itself in "ssl.vcproj" etc.
+Tweak SSL build to find OpenSSL in workdir & not build it itself in "ssl.vcproj" etc.
 
 diff -ru python3.orig/PCbuild/pcbuild.sln python3/PCbuild/pcbuild.sln
---- python3.orig/PCbuild/pcbuild.sln	2015-08-22 18:57:16.653719900 +0200
-+++ python3/PCbuild/pcbuild.sln	2015-08-22 19:03:06.062853000 +0200
-@@ -64,10 +64,6 @@
+--- python3.orig/PCbuild/pcbuild.sln	2017-08-09 23:39:15.511897077 +0200
++++ python3/PCbuild/pcbuild.sln	2017-08-09 23:48:41.375890717 +0200
+@@ -86,10 +86,6 @@
  EndProject
  Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tk", "tk.vcxproj", "{7E85ECCF-A72C-4DA4-9E52-884508E80BA1}"
  EndProject
@@ -17,40 +17,46 @@ diff -ru python3.orig/PCbuild/pcbuild.sln python3/PCbuild/pcbuild.sln
  EndProject
  Global
 diff -ru python3.orig/PCbuild/_ssl.vcxproj python3/PCbuild/_ssl.vcxproj
---- python3.orig/PCbuild/_ssl.vcxproj   2015-08-11 02:52:36.000000000 +0200
-+++ python3/PCbuild/_ssl.vcxproj        2015-08-22 18:19:20.744299000 +0200
+--- python3.orig/PCbuild/_ssl.vcxproj	2017-08-07 09:59:11.000000000 +0200
++++ python3/PCbuild/_ssl.vcxproj	2017-08-09 23:50:36.871889419 +0200
+@@ -1,4 +1,4 @@
+-<?xml version="1.0" encoding="utf-8"?>
++<?xml version="1.0" encoding="utf-8"?>
+ <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+   <ItemGroup Label="ProjectConfigurations">
+     <ProjectConfiguration Include="Debug|Win32">
 @@ -61,10 +61,10 @@
-   </PropertyGroup>
-   <ItemDefinitionGroup>
-     <ClCompile>
--      <AdditionalIncludeDirectories>$(opensslIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-+      <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-     </ClCompile>
-     <Link>
--      <AdditionalDependencies>ws2_32.lib;crypt32.lib;$(OutDir)libeay$(PyDebugExt).lib;$(OutDir)ssleay$(PyDebugExt).lib;%(AdditionalDependencies)</AdditionalDependencies>
-+      <AdditionalDependencies>ws2_32.lib;crypt32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
-     </Link>
-   </ItemDefinitionGroup>
-   <ItemGroup>
-@@ -75,14 +75,6 @@
-       <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
-       <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-     </ProjectReference>
--    <ProjectReference Include="libeay.vcxproj">
--      <Project>{e5b04cc0-eb4c-42ab-b4dc-18ef95f864b0}</Project>
--      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
--    </ProjectReference>
--    <ProjectReference Include="ssleay.vcxproj">
--      <Project>{10615b24-73bf-4efa-93aa-236916321317}</Project>
--      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
--    </ProjectReference>
-     <ProjectReference Include="_socket.vcxproj">
-       <Project>{86937f53-c189-40ef-8ce8-8759d8e7d480}</Project>
-       <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+   </PropertyGroup>
+   <ItemDefinitionGroup>
+     <ClCompile>
+-      <AdditionalIncludeDirectories>$(opensslIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
++      <AdditionalIncludeDirectories>$(WORKDIR)/UnpackedTarball/openssl/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+     </ClCompile>
+     <Link>
+-      <AdditionalDependencies>ws2_32.lib;crypt32.lib;$(OutDir)libeay$(PyDebugExt).lib;$(OutDir)ssleay$(PyDebugExt).lib;%(AdditionalDependencies)</AdditionalDependencies>
++      <AdditionalDependencies>ws2_32.lib;crypt32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\libeay32.lib;$(WORKDIR)\UnpackedTarball\openssl\out32dll\ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+     </Link>
+   </ItemDefinitionGroup>
+   <ItemGroup>
+@@ -78,14 +78,6 @@
+       <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
+       <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+     </ProjectReference>
+-    <ProjectReference Include="libeay.vcxproj">
+-      <Project>{e5b04cc0-eb4c-42ab-b4dc-18ef95f864b0}</Project>
+-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+-    </ProjectReference>
+-    <ProjectReference Include="ssleay.vcxproj">
+-      <Project>{10615b24-73bf-4efa-93aa-236916321317}</Project>
+-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+-    </ProjectReference>
+     <ProjectReference Include="_socket.vcxproj">
+       <Project>{86937f53-c189-40ef-8ce8-8759d8e7d480}</Project>
+       <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
 diff -ru python3.orig/setup.py python3/setup.py
---- python3.orig/setup.py       2015-08-22 18:16:15.825267200 +0200
-+++ python3/setup.py    2015-08-22 18:22:44.162757900 +0200
-@@ -778,7 +778,10 @@
+--- python3.orig/setup.py	2017-08-09 23:39:15.495897077 +0200
++++ python3/setup.py	2017-08-09 23:53:06.891887733 +0200
+@@ -807,7 +807,10 @@
          exts.append( Extension('_socket', ['socketmodule.c'],
                                 depends = ['socketmodule.h']) )
          # Detect SSL support for the socket module (via _ssl)
@@ -61,7 +67,7 @@ diff -ru python3.orig/setup.py python3/setup.py
                                '/usr/local/ssl/include',
                                '/usr/contrib/ssl/include/'
                               ]
-@@ -790,8 +793,12 @@
+@@ -819,8 +822,12 @@
                                 ['/usr/kerberos/include'])
              if krb5_h:
                  ssl_incs += krb5_h
@@ -74,5 +80,4 @@ diff -ru python3.orig/setup.py python3/setup.py
 +                                      '/usr/local/ssl/lib',
                                        '/usr/contrib/ssl/lib/'
                                       ] )
-
-
+ 
commit f9bae4b579c210661d28212a9ef05f3163a4925a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Aug 10 16:56:13 2017 +0100

    ofz#2899 increment pos before check, like all the other cases
    
    Change-Id: Id49f747e36f767a3e82fc3610959eb94015a93d7
    Reviewed-on: https://gerrit.libreoffice.org/40986
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>
    (cherry picked from commit 6ca0958555f24e2a384740669adceb6cf3c7e3b8)

diff --git a/hwpfilter/source/drawing.h b/hwpfilter/source/drawing.h
index 1967ddffed1c..52a67be5365d 100644
--- a/hwpfilter/source/drawing.h
+++ b/hwpfilter/source/drawing.h
@@ -318,8 +318,6 @@ static bool LoadCommonHeader(HWPDrawingObject * hdo, unsigned short * link_info)
 
 static HWPDrawingObject *LoadDrawingObject(void)
 {
-    fprintf(stderr, "LoadDrawingObject\n");
-
     HWPDrawingObject *hdo, *head, *prev;
 
     unsigned short link_info;
diff --git a/hwpfilter/source/hiodev.cxx b/hwpfilter/source/hiodev.cxx
index 45ccb987bcd5..da02aadc800e 100644
--- a/hwpfilter/source/hiodev.cxx
+++ b/hwpfilter/source/hiodev.cxx
@@ -308,9 +308,10 @@ bool HMemIODev::setCompressed(bool )
 
 bool HMemIODev::read1b(unsigned char &out)
 {
+    ++pos;
     if (pos <= length)
     {
-        out = ptr[pos++];
+        out = ptr[pos - 1];
         return true;
     }
     return false;


More information about the Libreoffice-commits mailing list