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
e2170dd7
Kaydet (Commit)
e2170dd7
authored
Ock 18, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
prevent to create cond formats with empty range, fdo#58778
Change-Id: I54bac843dc60c419c23c6d3f22c8d2f4b5805327
üst
c106167f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
8 deletions
+19
-8
condformatdlg.cxx
sc/source/ui/condformat/condformatdlg.cxx
+8
-0
condformatmgr.cxx
sc/source/ui/condformat/condformatmgr.cxx
+7
-7
cellsh1.cxx
sc/source/ui/view/cellsh1.cxx
+4
-1
No files found.
sc/source/ui/condformat/condformatdlg.cxx
Dosyayı görüntüle @
e2170dd7
...
@@ -467,12 +467,20 @@ void ScCondFormatDlg::SetReference(const ScRange& rRef, ScDocument*)
...
@@ -467,12 +467,20 @@ void ScCondFormatDlg::SetReference(const ScRange& rRef, ScDocument*)
ScConditionalFormat
*
ScCondFormatDlg
::
GetConditionalFormat
()
const
ScConditionalFormat
*
ScCondFormatDlg
::
GetConditionalFormat
()
const
{
{
rtl
::
OUString
aRangeStr
=
maEdRange
.
GetText
();
rtl
::
OUString
aRangeStr
=
maEdRange
.
GetText
();
if
(
aRangeStr
.
isEmpty
())
return
NULL
;
ScRangeList
aRange
;
ScRangeList
aRange
;
sal_uInt16
nFlags
=
aRange
.
Parse
(
aRangeStr
,
mpDoc
,
SCA_VALID
,
mpDoc
->
GetAddressConvention
(),
maPos
.
Tab
());
sal_uInt16
nFlags
=
aRange
.
Parse
(
aRangeStr
,
mpDoc
,
SCA_VALID
,
mpDoc
->
GetAddressConvention
(),
maPos
.
Tab
());
ScConditionalFormat
*
pFormat
=
maCondFormList
.
GetConditionalFormat
();
ScConditionalFormat
*
pFormat
=
maCondFormList
.
GetConditionalFormat
();
if
(
nFlags
&
SCA_VALID
&&
!
aRange
.
empty
()
&&
pFormat
)
if
(
nFlags
&
SCA_VALID
&&
!
aRange
.
empty
()
&&
pFormat
)
pFormat
->
AddRange
(
aRange
);
pFormat
->
AddRange
(
aRange
);
else
{
delete
pFormat
;
pFormat
=
NULL
;
}
return
pFormat
;
return
pFormat
;
}
}
...
...
sc/source/ui/condformat/condformatmgr.cxx
Dosyayı görüntüle @
e2170dd7
...
@@ -275,14 +275,14 @@ IMPL_LINK_NOARG(ScCondFormatManagerDlg, AddBtnHdl)
...
@@ -275,14 +275,14 @@ IMPL_LINK_NOARG(ScCondFormatManagerDlg, AddBtnHdl)
if
(
pDlg
->
Execute
()
==
RET_OK
)
if
(
pDlg
->
Execute
()
==
RET_OK
)
{
{
ScConditionalFormat
*
pNewFormat
=
pDlg
->
GetConditionalFormat
();
ScConditionalFormat
*
pNewFormat
=
pDlg
->
GetConditionalFormat
();
if
(
!
pNewFormat
)
if
(
pNewFormat
)
return
0
;
{
mpFormatList
->
InsertNew
(
pNewFormat
);
mpFormatList
->
InsertNew
(
pNewFormat
);
pNewFormat
->
SetKey
(
FindKey
(
mpFormatList
));
pNewFormat
->
SetKey
(
FindKey
(
mpFormatList
));
maCtrlManager
.
Update
();
maCtrlManager
.
Update
();
mbModified
=
true
;
mbModified
=
true
;
}
}
}
Show
(
true
,
0
);
Show
(
true
,
0
);
pScMod
->
SetRefDialog
(
nId
,
false
);
pScMod
->
SetRefDialog
(
nId
,
false
);
...
...
sc/source/ui/view/cellsh1.cxx
Dosyayı görüntüle @
e2170dd7
...
@@ -1886,7 +1886,10 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
...
@@ -1886,7 +1886,10 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
if
(
pCondFormatDlg
->
Execute
()
==
RET_OK
)
if
(
pCondFormatDlg
->
Execute
()
==
RET_OK
)
{
{
ScConditionalFormat
*
pFormat
=
pCondFormatDlg
->
GetConditionalFormat
();
ScConditionalFormat
*
pFormat
=
pCondFormatDlg
->
GetConditionalFormat
();
pData
->
GetDocShell
()
->
GetDocFunc
().
ReplaceConditionalFormat
(
nKey
,
pFormat
,
aPos
.
Tab
(),
pFormat
->
GetRange
());
if
(
pFormat
)
pData
->
GetDocShell
()
->
GetDocFunc
().
ReplaceConditionalFormat
(
nKey
,
pFormat
,
aPos
.
Tab
(),
pFormat
->
GetRange
());
else
pData
->
GetDocShell
()
->
GetDocFunc
().
ReplaceConditionalFormat
(
nKey
,
NULL
,
aPos
.
Tab
(),
ScRangeList
());
}
}
pScMod
->
SetRefDialog
(
nId
,
false
);
pScMod
->
SetRefDialog
(
nId
,
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