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
927da98a
Kaydet (Commit)
927da98a
authored
Mar 15, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add integrity check after column cell storage is modified.
Change-Id: I8d2bd7616e0428e4e881ef0dc1012c4973e636a9
üst
63229066
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
column.hxx
sc/inc/column.hxx
+8
-0
column2.cxx
sc/source/core/data/column2.cxx
+21
-0
No files found.
sc/inc/column.hxx
Dosyayı görüntüle @
927da98a
...
...
@@ -28,6 +28,14 @@
#include <set>
#include <vector>
#define DEBUG_COLUMN_STORAGE 1
#if DEBUG_COLUMN_STORAGE
#ifdef NDEBUG
#undef NDEBUG
#endif
#endif
#include <mdds/multi_type_vector.hpp>
#include <mdds/multi_type_vector_trait.hpp>
...
...
sc/source/core/data/column2.cxx
Dosyayı görüntüle @
927da98a
...
...
@@ -56,6 +56,13 @@
#include <math.h>
#if DEBUG_COLUMN_STORAGE
#include "columniterator.hxx"
#include <iostream>
using
std
::
cout
;
using
std
::
endl
;
#endif
// -----------------------------------------------------------------------
// factor from font size to optimal cell height (text width)
...
...
@@ -1384,6 +1391,20 @@ SCROW ScColumn::FindNextVisibleRowWithContent(SCROW nRow, bool bForward) const
void
ScColumn
::
CellStorageModified
()
{
#if DEBUG_COLUMN_STORAGE
ScColumnTextWidthIterator
aIter
(
*
this
,
0
,
MAXROW
);
for
(;
aIter
.
hasCell
();
aIter
.
next
())
{
SCROW
nRow
=
aIter
.
getPos
();
ScBaseCell
*
pCell
=
GetCell
(
nRow
);
if
(
!
pCell
)
{
cout
<<
"Cell and text width storages are out of sync!"
<<
endl
;
cout
.
flush
();
abort
();
}
}
#endif
}
unsigned
short
ScColumn
::
GetTextWidth
(
SCROW
nRow
)
const
...
...
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