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
056a9a8b
Kaydet (Commit)
056a9a8b
authored
Mar 06, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1190349 Division or modulo by zero
Change-Id: Ia32e9197d0b5d5a02187d11f05bcf2dcae5ccb76
üst
5d81ffe5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
inftxt.cxx
sw/source/core/text/inftxt.cxx
+5
-11
No files found.
sw/source/core/text/inftxt.cxx
Dosyayı görüntüle @
056a9a8b
...
@@ -833,19 +833,13 @@ static void lcl_DrawSpecial( const SwTxtPaintInfo& rInf, const SwLinePortion& rP
...
@@ -833,19 +833,13 @@ static void lcl_DrawSpecial( const SwTxtPaintInfo& rInf, const SwLinePortion& rP
// The maximum width depends on the current orientation
// The maximum width depends on the current orientation
const
sal_uInt16
nDir
=
m_pFnt
->
GetOrientation
(
rInf
.
GetTxtFrm
()
->
IsVertical
()
);
const
sal_uInt16
nDir
=
m_pFnt
->
GetOrientation
(
rInf
.
GetTxtFrm
()
->
IsVertical
()
);
SwTwips
nMaxWidth
=
0
;
SwTwips
nMaxWidth
;
switch
(
nDir
)
if
(
nDir
==
900
||
nDir
==
2700
)
nMaxWidth
=
rRect
.
Height
();
else
{
{
case
0
:
assert
(
nDir
==
0
);
//Unknown direction set at font
nMaxWidth
=
rRect
.
Width
();
nMaxWidth
=
rRect
.
Width
();
break
;
case
900
:
case
2700
:
nMaxWidth
=
rRect
.
Height
();
break
;
default
:
OSL_FAIL
(
"Unknown direction set at font"
);
break
;
}
}
// check if char fits into rectangle
// check if char fits into rectangle
...
...
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