summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/dinfdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/dinfdlg.cxx')
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 45030f326e0d..6b58a5181614 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -1055,7 +1055,16 @@ void SfxDocumentPage::Reset( const SfxItemSet& rSet )
aURL.SetSmartProtocol( INET_PROT_FILE );
aURL.SetSmartURL( aFactory);
const OUString& rMainURL = aURL.GetMainURL( INetURLObject::NO_DECODE );
- m_pBmp->SetImage( SvFileInformationManager::GetImage( aURL, sal_True ) );
+ Image aImage = SvFileInformationManager::GetImage( aURL, sal_True );
+
+ if ( GetDPIScaleFactor() > 1)
+ {
+ BitmapEx b = aImage.GetBitmapEx();
+ b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor());
+ aImage = Image(b);
+ }
+
+ m_pBmp->SetImage( aImage );
// determine size and type
OUString aSizeText( m_aUnknownSize );