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
9bf4b8c5
Kaydet (Commit)
9bf4b8c5
authored
Kas 11, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1187643 Unchecked return value
Change-Id: I2ba56fbff1ae05d1185d08d4fbd0285954fed38b
üst
94ef826e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
textrun.cxx
oox/source/drawingml/textrun.cxx
+10
-6
No files found.
oox/source/drawingml/textrun.cxx
Dosyayı görüntüle @
9bf4b8c5
...
...
@@ -76,15 +76,16 @@ sal_Int32 TextRun::insertAt(
}
else
{
OUString
aLatinFontName
,
aSymbolFontName
;
sal_Int16
nSymbolFontFamily
=
0
,
nSymbolFontPitch
=
0
;
if
(
!
aTextCharacterProps
.
maSymbolFont
.
getFontData
(
aSymbolFontName
,
nSymbolFontPitch
,
nSymbolFontFamily
,
rFilterBase
)
)
xText
->
insertString
(
xStart
,
getText
(),
sal_False
);
else
if
(
!
getText
().
isEmpty
()
)
{
// !!#i113673<<<
{
// #i113673
OUString
aLatinFontName
,
aSymbolFontName
;
sal_Int16
nLatinFontPitch
=
0
,
nLatinFontFamily
=
0
;
aTextCharacterProps
.
maLatinFont
.
getFontData
(
aLatinFontName
,
nLatinFontPitch
,
nLatinFontFamily
,
rFilterBase
);
bool
bLatinOk
=
aTextCharacterProps
.
maLatinFont
.
getFontData
(
aLatinFontName
,
nLatinFontPitch
,
nLatinFontFamily
,
rFilterBase
);
sal_Int32
nIndex
=
0
;
while
(
true
)
...
...
@@ -109,9 +110,12 @@ sal_Int32 TextRun::insertAt(
nCount
++
;
}
while
(
(
(
nCount
+
nIndex
)
<
getText
().
getLength
()
)
&&
(
(
getText
()[
nCount
+
nIndex
]
&
0xff00
)
!=
0xf000
)
);
aPropSet
.
setAnyProperty
(
PROP_CharFontName
,
Any
(
aLatinFontName
)
);
aPropSet
.
setAnyProperty
(
PROP_CharFontPitch
,
Any
(
nLatinFontPitch
)
);
aPropSet
.
setAnyProperty
(
PROP_CharFontFamily
,
Any
(
nLatinFontFamily
)
);
if
(
bLatinOk
)
{
aPropSet
.
setAnyProperty
(
PROP_CharFontName
,
Any
(
aLatinFontName
)
);
aPropSet
.
setAnyProperty
(
PROP_CharFontPitch
,
Any
(
nLatinFontPitch
)
);
aPropSet
.
setAnyProperty
(
PROP_CharFontFamily
,
Any
(
nLatinFontFamily
)
);
}
}
OUString
aSubString
(
getText
().
copy
(
nIndex
,
nCount
)
);
xText
->
insertString
(
xStart
,
aSubString
,
sal_False
);
...
...
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