[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - ucb/source

Michael Stahl mstahl at redhat.com
Tue Jan 21 11:26:03 PST 2014


 ucb/source/ucp/webdav/webdavcontent.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bd121d45f847ff353e3796510fac3181b88a87b1
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Jan 21 20:14:46 2014 +0100

    ucb: fix inverted condition in webdav lcl_sendPartialGETRequest
    
    (regression from a3f32769fc4bb23c64168b412dd10ec769a3854d)
    
    Change-Id: Ic72b0e874ebf19e25e43af1f8750c63c04ed8a8e
    (cherry picked from commit 3780738154b8c3b3f9d85c64cccf621d97574886)
    Reviewed-on: https://gerrit.libreoffice.org/7581
    Reviewed-by: David Tardon <dtardon at redhat.com>
    Tested-by: David Tardon <dtardon at redhat.com>

diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index 9bd49f3..d98c39b 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -163,7 +163,7 @@ static void lcl_sendPartialGETRequest( bool &bError,
                         for ( std::vector< DAVPropertyValue >::iterator it = aResponseProps.begin();
                                 it != aResponseProps.end(); ++it )
                         {
-                            if ( it->Name != "Content-Length" )
+                            if (it->Name == "Content-Length")
                             {
                                 it->Value <<= aSize;
                                 break;


More information about the Libreoffice-commits mailing list