diff options
-rw-r--r-- | i18nutil/source/utility/paper.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/recentdocsviewitem.cxx | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index 2447bfc7813b..e3f99f2cf9fc 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx @@ -82,7 +82,7 @@ static const PageDesc aDinTab[] = { MM2MM100( 114 ), MM2MM100( 229 ), "EnvC65", NULL }, { MM2MM100( 110 ), MM2MM100( 220 ), "EnvDL", "DL" }, { MM2MM100( 180), MM2MM100( 270 ), NULL, NULL }, //Dia - { MM2MM100( 210), MM2MM100( 280 ), NULL, NULL }, //Screen 4:3 + { MM2MM100( 280), MM2MM100( 210 ), NULL, NULL }, //Screen 4:3 { IN2MM100( 17 ), IN2MM100( 22 ), "AnsiC", "CSheet" }, { IN2MM100( 22 ), IN2MM100( 34 ), "AnsiD", "DSheet" }, { IN2MM100( 34 ), IN2MM100( 44 ), "AnsiE", "ESheet" }, diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx index 2531da197a7e..2d1e08308297 100644 --- a/sfx2/source/control/recentdocsviewitem.cxx +++ b/sfx2/source/control/recentdocsviewitem.cxx @@ -38,7 +38,11 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR Size aExtSize(aExt.GetSizePixel()); // attempt to make it appear as if it is on a piece of paper - static PaperInfo aInfo(PaperInfo::getSystemDefaultPaper()); + INetURLObject aUrl(rURL); + PaperInfo aInfo( + RecentDocsView::typeMatchesExtension(TYPE_IMPRESS, aUrl.getExtension()) + ? PAPER_SCREEN_4_3 + : PaperInfo::getSystemDefaultPaper()); double ratio = double(nThumbnailSize) / double(std::max(aInfo.getWidth(), aInfo.getHeight())); Size aThumbnailSize(aInfo.getWidth() * ratio, aInfo.getHeight() * ratio); |