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
1f44d9b7
Kaydet (Commit)
1f44d9b7
authored
Tem 31, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
TableRef: add some SAL_WARN() when invalidating column names/offsets
Change-Id: I628a7ce66d8d3eed5bf70a0ac57acd8f4deef598
üst
1a5e176e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
dbdata.cxx
sc/source/core/tool/dbdata.cxx
+17
-2
No files found.
sc/source/core/tool/dbdata.cxx
Dosyayı görüntüle @
1f44d9b7
...
@@ -277,7 +277,13 @@ void ScDBData::GetArea(ScRange& rRange) const
...
@@ -277,7 +277,13 @@ void ScDBData::GetArea(ScRange& rRange) const
void
ScDBData
::
SetArea
(
SCTAB
nTab
,
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
)
void
ScDBData
::
SetArea
(
SCTAB
nTab
,
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
)
{
{
if
(
nCol2
-
nCol1
!=
nEndCol
-
nStartCol
)
if
(
nCol2
-
nCol1
!=
nEndCol
-
nStartCol
)
::
std
::
vector
<
OUString
>
().
swap
(
maTableColumnNames
);
// invalidate column names/offsets
{
if
(
!
maTableColumnNames
.
empty
())
{
SAL_WARN
(
"sc.core"
,
"ScDBData::SetArea - invalidating column names/offsets"
);
::
std
::
vector
<
OUString
>
().
swap
(
maTableColumnNames
);
}
}
nTable
=
nTab
;
nTable
=
nTab
;
nStartCol
=
nCol1
;
nStartCol
=
nCol1
;
...
@@ -564,7 +570,13 @@ void ScDBData::ExtendDataArea(ScDocument* pDoc)
...
@@ -564,7 +570,13 @@ void ScDBData::ExtendDataArea(ScDocument* pDoc)
SCCOL
nOldCol1
=
nStartCol
,
nOldCol2
=
nEndCol
;
SCCOL
nOldCol1
=
nStartCol
,
nOldCol2
=
nEndCol
;
pDoc
->
GetDataArea
(
nTable
,
nStartCol
,
nStartRow
,
nEndCol
,
nEndRow
,
false
,
true
);
pDoc
->
GetDataArea
(
nTable
,
nStartCol
,
nStartRow
,
nEndCol
,
nEndRow
,
false
,
true
);
if
(
nStartCol
!=
nOldCol1
||
nEndCol
!=
nOldCol2
)
if
(
nStartCol
!=
nOldCol1
||
nEndCol
!=
nOldCol2
)
::
std
::
vector
<
OUString
>
().
swap
(
maTableColumnNames
);
// invalidate column names/offsets
{
if
(
!
maTableColumnNames
.
empty
())
{
SAL_WARN
(
"sc.core"
,
"ScDBData::ExtendDataArea - invalidating column names/offsets"
);
::
std
::
vector
<
OUString
>
().
swap
(
maTableColumnNames
);
}
}
}
}
void
ScDBData
::
AdjustTableColumnNames
(
UpdateRefMode
eUpdateRefMode
,
SCCOL
nDx
,
SCCOL
nCol1
,
void
ScDBData
::
AdjustTableColumnNames
(
UpdateRefMode
eUpdateRefMode
,
SCCOL
nDx
,
SCCOL
nCol1
,
...
@@ -604,6 +616,9 @@ void ScDBData::AdjustTableColumnNames( UpdateRefMode eUpdateRefMode, SCCOL nDx,
...
@@ -604,6 +616,9 @@ void ScDBData::AdjustTableColumnNames( UpdateRefMode eUpdateRefMode, SCCOL nDx,
}
}
}
}
}
// else empty aNewNames invalidates names/offsets
}
// else empty aNewNames invalidates names/offsets
SAL_WARN_IF
(
!
maTableColumnNames
.
empty
()
&&
aNewNames
.
empty
(),
"sc.core"
,
"ScDBData::AdjustTableColumnNames - invalidating column names/offsets"
);
aNewNames
.
swap
(
maTableColumnNames
);
aNewNames
.
swap
(
maTableColumnNames
);
}
}
...
...
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