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
f5b9db43
Kaydet (Commit)
f5b9db43
authored
Nis 02, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#75307 discard invalid user data
Change-Id: Id39b51c344004e02d3d5a281ba98721b944468c3
üst
604f67db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
chardlg.cxx
cui/source/tabpages/chardlg.cxx
+20
-0
No files found.
cui/source/tabpages/chardlg.cxx
Dosyayı görüntüle @
f5b9db43
...
...
@@ -2897,6 +2897,26 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet )
m_nSubEsc
=
(
short
)
sUser
.
getToken
(
1
,
';'
).
toInt32
();
m_nSuperProp
=
(
sal_uInt8
)
sUser
.
getToken
(
2
,
';'
).
toInt32
();
m_nSubProp
=
(
sal_uInt8
)
sUser
.
getToken
(
3
,
';'
).
toInt32
();
//fdo#75307 validate all the entries and discard all of them if any are
//out of range
bool
bValid
=
true
;
if
(
m_nSuperEsc
<
m_pHighLowMF
->
GetMin
()
||
m_nSuperEsc
>
m_pHighLowMF
->
GetMax
())
bValid
=
false
;
if
(
m_nSubEsc
*-
1
<
m_pHighLowMF
->
GetMin
()
||
m_nSubEsc
*-
1
>
m_pHighLowMF
->
GetMax
())
bValid
=
false
;
if
(
m_nSuperProp
<
m_pFontSizeMF
->
GetMin
()
||
m_nSuperProp
>
m_pFontSizeMF
->
GetMax
())
bValid
=
false
;
if
(
m_nSubProp
<
m_pFontSizeMF
->
GetMin
()
||
m_nSubProp
>
m_pFontSizeMF
->
GetMax
())
bValid
=
false
;
if
(
!
bValid
)
{
m_nSuperEsc
=
DFLT_ESC_SUPER
;
m_nSubEsc
=
DFLT_ESC_SUB
;
m_nSuperProp
=
DFLT_ESC_PROP
;
m_nSubProp
=
DFLT_ESC_PROP
;
}
}
short
nEsc
=
0
;
...
...
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