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
e758f6fa
Kaydet (Commit)
e758f6fa
authored
Eki 04, 2011
tarafından
Ivan Timofeev
Kaydeden (comit)
Caolán McNamara
Eki 04, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix doubling of one page when range is empty and incorrect selection page
üst
6cb60808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
12 deletions
+23
-12
DocumentRenderer.cxx
sd/source/ui/view/DocumentRenderer.cxx
+23
-12
No files found.
sd/source/ui/view/DocumentRenderer.cxx
Dosyayı görüntüle @
e758f6fa
...
...
@@ -210,18 +210,29 @@ namespace {
OUString
GetPrinterSelection
(
sal_Int32
nPageCount
,
sal_Int32
nCurrentPageIndex
)
const
{
sal_Int32
nContent
=
static_cast
<
sal_Int32
>
(
mrProperties
.
getIntValue
(
"PrintContent"
,
0
));
OUString
sValue
=
::
rtl
::
OUStringBuffer
(
4
)
.
append
(
static_cast
<
sal_Int32
>
(
1
))
.
append
(
static_cast
<
sal_Unicode
>
(
'-'
))
.
append
(
nPageCount
).
makeStringAndClear
();
if
(
nContent
==
1
)
sValue
=
mrProperties
.
getStringValue
(
"PageRange"
,
sValue
);
else
if
(
nContent
==
2
)
sValue
=
nCurrentPageIndex
<
0
?
OUString
()
:
OUString
::
valueOf
(
nCurrentPageIndex
);
return
sValue
;
OUString
sFullRange
=
::
rtl
::
OUStringBuffer
()
.
append
(
static_cast
<
sal_Int32
>
(
1
))
.
append
(
static_cast
<
sal_Unicode
>
(
'-'
))
.
append
(
nPageCount
).
makeStringAndClear
();
if
(
nContent
==
0
)
// all pages/slides
{
return
sFullRange
;
}
if
(
nContent
==
1
)
// range
{
OUString
sValue
=
mrProperties
.
getStringValue
(
"PageRange"
);
return
sValue
.
getLength
()
?
sValue
:
sFullRange
;
}
if
(
nContent
==
2
&&
// selection
nCurrentPageIndex
>=
0
)
{
return
OUString
::
valueOf
(
nCurrentPageIndex
+
1
);
}
return
OUString
();
}
private
:
...
...
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