Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
cca120ad
Kaydet (Commit)
cca120ad
authored
Eyl 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#80911 don't swap notes page width/height
Change-Id: I9826f69d03de85ea8d2b2c025121599877798852
üst
c42d2a5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
DocumentRenderer.cxx
sd/source/ui/view/DocumentRenderer.cxx
+15
-13
No files found.
sd/source/ui/view/DocumentRenderer.cxx
Dosyayı görüntüle @
cca120ad
...
@@ -1361,6 +1361,7 @@ private:
...
@@ -1361,6 +1361,7 @@ private:
{
{
SdDrawDocument
*
pDocument
=
mrBase
.
GetMainViewShell
()
->
GetDoc
();
SdDrawDocument
*
pDocument
=
mrBase
.
GetMainViewShell
()
->
GetDoc
();
rInfo
.
meOrientation
=
ORIENTATION_PORTRAIT
;
rInfo
.
meOrientation
=
ORIENTATION_PORTRAIT
;
bool
bDoDodgyHeightWidthFit
=
!
mpOptions
->
IsDraw
()
&&
!
mpOptions
->
IsNotes
();
if
(
!
mpOptions
->
IsBooklet
())
if
(
!
mpOptions
->
IsBooklet
())
{
{
...
@@ -1369,9 +1370,9 @@ private:
...
@@ -1369,9 +1370,9 @@ private:
else
if
(
rInfo
.
maPageSize
.
Width
()
<
rInfo
.
maPageSize
.
Height
())
else
if
(
rInfo
.
maPageSize
.
Width
()
<
rInfo
.
maPageSize
.
Height
())
rInfo
.
meOrientation
=
ORIENTATION_LANDSCAPE
;
rInfo
.
meOrientation
=
ORIENTATION_LANDSCAPE
;
// Draw
should abide by
specified paper size
// Draw
and Notes should abide by their
specified paper size
Size
aPaperSize
;
Size
aPaperSize
;
if
(
mpOptions
->
IsDraw
()
)
if
(
!
bDoDodgyHeightWidthFit
)
{
{
aPaperSize
.
setWidth
(
rInfo
.
maPageSize
.
Width
());
aPaperSize
.
setWidth
(
rInfo
.
maPageSize
.
Width
());
aPaperSize
.
setHeight
(
rInfo
.
maPageSize
.
Height
());
aPaperSize
.
setHeight
(
rInfo
.
maPageSize
.
Height
());
...
@@ -1382,18 +1383,19 @@ private:
...
@@ -1382,18 +1383,19 @@ private:
aPaperSize
.
setHeight
(
rInfo
.
mpPrinter
->
GetPaperSize
().
Height
());
aPaperSize
.
setHeight
(
rInfo
.
mpPrinter
->
GetPaperSize
().
Height
());
}
}
if
(
(
rInfo
.
meOrientation
==
ORIENTATION_LANDSCAPE
&&
maPrintSize
=
awt
::
Size
(
aPaperSize
.
Width
(),
aPaperSize
.
Height
());
(
aPaperSize
.
Width
()
<
aPaperSize
.
Height
()))
||
if
(
bDoDodgyHeightWidthFit
)
(
rInfo
.
meOrientation
==
ORIENTATION_PORTRAIT
&&
(
aPaperSize
.
Width
()
>
aPaperSize
.
Height
()))
)
{
maPrintSize
=
awt
::
Size
(
aPaperSize
.
Height
(),
aPaperSize
.
Width
());
}
else
{
{
maPrintSize
=
awt
::
Size
(
aPaperSize
.
Width
(),
aPaperSize
.
Height
());
if
(
(
rInfo
.
meOrientation
==
ORIENTATION_LANDSCAPE
&&
(
aPaperSize
.
Width
()
<
aPaperSize
.
Height
()))
||
(
rInfo
.
meOrientation
==
ORIENTATION_PORTRAIT
&&
(
aPaperSize
.
Width
()
>
aPaperSize
.
Height
()))
)
{
maPrintSize
=
awt
::
Size
(
aPaperSize
.
Height
(),
aPaperSize
.
Width
());
}
}
}
return
true
;
return
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment