diff options
author | Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> | 2016-02-19 17:45:46 +0100 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-02-21 13:00:38 +0000 |
commit | 86cd3df1ec9719e3a2a56dad1d9d7935f52a9f61 (patch) | |
tree | db16b0c44d625daf944cf5cf50aaabddadb2b971 /sfx2/source/dialog/dinfdlg.cxx | |
parent | 03a5995ab03b6bc16a3363cfdc45b7039114ab6a (diff) |
Related tdf#81718: correctly display file size for...
...WebDAV elements.
WebDAV UCP provider maps UCB 'Size' property to 'DAV:getcontentlength'.
DAV:getcontentlength property is defined in Section 15.4 of RFC4918.
<http://tools.ietf.org/html/rfc4918#section-15>
Change-Id: Ie91d1f2aed417002f4d1ecae3e1188123c04d35b
Reviewed-on: https://gerrit.libreoffice.org/22511
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'sfx2/source/dialog/dinfdlg.cxx')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 0b7877beee6f..77ed82c8786e 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1056,7 +1056,8 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet ) // determine size and type OUString aSizeText( m_aUnknownSize ); - if ( aURL.GetProtocol() == INetProtocol::File ) + if ( aURL.GetProtocol() == INetProtocol::File || + aURL.isAnyKnownWebDAVScheme() ) aSizeText = CreateSizeText( SfxContentHelper::GetSize( aURL.GetMainURL( INetURLObject::NO_DECODE ) ) ); m_pShowSizeFT->SetText( aSizeText ); |