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
3c2f3f48
Kaydet (Commit)
3c2f3f48
authored
Ock 19, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735598 : Division by zero
Change-Id: I288b46a933d8a301823deed8fccae9764b74e840
üst
2a77e7a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
baside2.cxx
basctl/source/basicide/baside2.cxx
+3
-1
No files found.
basctl/source/basicide/baside2.cxx
Dosyayı görüntüle @
3c2f3f48
...
...
@@ -895,7 +895,9 @@ sal_Int32 ModulWindow::FormatAndPrint( Printer* pPrinter, sal_Int32 nPrintPage )
// nLinepPage is not correct if there's a line break
sal_uInt16
nLinespPage
=
(
sal_uInt16
)
(
aPaperSz
.
Height
()
/
nLineHeight
);
sal_uInt16
nCharspLine
=
(
sal_uInt16
)
(
aPaperSz
.
Width
()
/
pPrinter
->
GetTextWidth
(
"X"
)
);
long
nXTextWidth
=
pPrinter
->
GetTextWidth
(
"X"
);
sal_uInt16
nCharspLine
=
(
sal_uInt16
)
(
aPaperSz
.
Width
()
/
nXTextWidth
>
1
?
nXTextWidth
:
1
);
sal_uLong
nParas
=
GetEditEngine
()
->
GetParagraphCount
();
sal_uInt16
nPages
=
(
sal_uInt16
)
(
nParas
/
nLinespPage
+
1
);
...
...
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