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
a5d40188
Kaydet (Commit)
a5d40188
authored
Ara 08, 2017
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Call GetItemState() only once per WhichID loop
Change-Id: Ic14015692bc934f06fb8371216ae5e3e1afe5afd
üst
20f532b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
formatsh.cxx
sc/source/ui/view/formatsh.cxx
+4
-3
No files found.
sc/source/ui/view/formatsh.cxx
Dosyayı görüntüle @
a5d40188
...
...
@@ -2512,6 +2512,7 @@ void ScFormatShell::GetNumFormatState( SfxItemSet& rSet )
ScDocument
*
pDoc
=
pViewData
->
GetDocument
();
short
nType
=
GetCurrentNumberFormatType
();
const
SfxItemSet
&
rAttrSet
=
pTabViewShell
->
GetSelectionPattern
()
->
GetItemSet
();
const
SfxItemState
eItemState
=
rAttrSet
.
GetItemState
(
ATTR_VALUE_FORMAT
);
sal_uInt32
nNumberFormat
=
rAttrSet
.
Get
(
ATTR_VALUE_FORMAT
).
GetValue
();
SvNumberFormatter
*
pFormatter
=
pDoc
->
GetFormatTable
();
NfIndexTableOffset
nOffset
=
pFormatter
->
GetIndexTableOffset
(
nNumberFormat
);
...
...
@@ -2525,7 +2526,7 @@ void ScFormatShell::GetNumFormatState( SfxItemSet& rSet )
{
case
SID_NUMBER_THOUSANDS
:
{
bool
bEnable
=
(
SfxItemState
::
DONTCARE
!=
rAttrSet
.
GetItemState
(
ATTR_VALUE_FORMAT
)
);
bool
bEnable
=
(
SfxItemState
::
DONTCARE
!=
eItemState
);
if
(
bEnable
)
{
bEnable
=
((
nType
!=
css
::
util
::
NumberFormat
::
ALL
)
&&
(
nType
&
...
...
@@ -2552,7 +2553,7 @@ void ScFormatShell::GetNumFormatState( SfxItemSet& rSet )
case
SID_NUMBER_FORMAT
:
// symphony version with format interpretation
{
if
(
SfxItemState
::
DONTCARE
!=
rAttrSet
.
GetItemState
(
ATTR_VALUE_FORMAT
)
)
if
(
SfxItemState
::
DONTCARE
!=
eItemState
)
{
bool
bThousand
(
false
);
bool
bNegRed
(
false
);
...
...
@@ -2596,7 +2597,7 @@ void ScFormatShell::GetNumFormatState( SfxItemSet& rSet )
case
SID_NUMBER_TYPE_FORMAT
:
{
sal_Int16
aFormatCode
=
-
1
;
if
(
rAttrSet
.
GetItemState
(
ATTR_VALUE_FORMAT
)
>=
SfxItemState
::
DEFAULT
)
//Modify for more robust
if
(
eItemState
>=
SfxItemState
::
DEFAULT
)
//Modify for more robust
{
const
SvNumberformat
*
pFormatEntry
=
pFormatter
->
GetEntry
(
nNumberFormat
);
bool
bStandard
=
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