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
e729c45b
Kaydet (Commit)
e729c45b
authored
Nis 18, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Correctly set the positions of sorted formula cells.
Change-Id: I21cc7aa2cc521203f4da6f754a2ad7b4e985dd67
üst
4004ceeb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
4 deletions
+11
-4
cellvalues.hxx
sc/inc/cellvalues.hxx
+1
-1
formulacell.hxx
sc/inc/formulacell.hxx
+1
-0
cellvalues.cxx
sc/source/core/data/cellvalues.cxx
+2
-2
formulacell.cxx
sc/source/core/data/formulacell.cxx
+5
-0
table3.cxx
sc/source/core/data/table3.cxx
+2
-1
No files found.
sc/inc/cellvalues.hxx
Dosyayı görüntüle @
e729c45b
...
...
@@ -49,7 +49,7 @@ public:
void
copyTo
(
ScColumn
&
rCol
,
SCROW
nRow
)
const
;
void
assign
(
const
std
::
vector
<
double
>&
rVals
);
void
append
(
ScRefCellValue
&
rVal
,
const
CellTextAttr
*
pAttr
);
void
append
(
ScRefCellValue
&
rVal
,
const
CellTextAttr
*
pAttr
,
const
ScAddress
&
rPos
);
size_t
size
()
const
;
...
...
sc/inc/formulacell.hxx
Dosyayı görüntüle @
e729c45b
...
...
@@ -160,6 +160,7 @@ public:
virtual
~
ScFormulaCell
();
ScFormulaCell
*
Clone
()
const
;
ScFormulaCell
*
Clone
(
const
ScAddress
&
rPos
)
const
;
ScFormulaCell
(
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
);
...
...
sc/source/core/data/cellvalues.cxx
Dosyayı görüntüle @
e729c45b
...
...
@@ -65,7 +65,7 @@ void CellValues::assign( const std::vector<double>& rVals )
mpImpl
->
maCellTextAttrs
.
set
(
0
,
aDefaults
.
begin
(),
aDefaults
.
end
());
}
void
CellValues
::
append
(
ScRefCellValue
&
rVal
,
const
CellTextAttr
*
pAttr
)
void
CellValues
::
append
(
ScRefCellValue
&
rVal
,
const
CellTextAttr
*
pAttr
,
const
ScAddress
&
rPos
)
{
assert
(
mpImpl
->
maCells
.
size
()
==
mpImpl
->
maCellTextAttrs
.
size
());
...
...
@@ -96,7 +96,7 @@ void CellValues::append( ScRefCellValue& rVal, const CellTextAttr* pAttr )
case
CELLTYPE_FORMULA
:
{
mpImpl
->
maCells
.
resize
(
n
+
1
);
CellStoreType
::
iterator
itBlk
=
mpImpl
->
maCells
.
set
(
n
,
rVal
.
mpFormula
->
Clone
());
CellStoreType
::
iterator
itBlk
=
mpImpl
->
maCells
.
set
(
n
,
rVal
.
mpFormula
->
Clone
(
rPos
));
size_t
nOffset
=
n
-
itBlk
->
position
;
CellStoreType
::
position_type
aPos
(
itBlk
,
nOffset
);
...
...
sc/source/core/data/formulacell.cxx
Dosyayı görüntüle @
e729c45b
...
...
@@ -841,6 +841,11 @@ ScFormulaCell* ScFormulaCell::Clone() const
return
new
ScFormulaCell
(
*
this
,
*
pDocument
,
aPos
);
}
ScFormulaCell
*
ScFormulaCell
::
Clone
(
const
ScAddress
&
rPos
)
const
{
return
new
ScFormulaCell
(
*
this
,
*
pDocument
,
rPos
);
}
size_t
ScFormulaCell
::
GetHash
()
const
{
return
pCode
->
GetHash
();
...
...
sc/source/core/data/table3.cxx
Dosyayı görüntüle @
e729c45b
...
...
@@ -437,7 +437,8 @@ void ScTable::SortReorder( ScSortInfoArray* pArray, ScProgress* pProgress )
{
ScSortInfoArray
::
Cell
&
rCell
=
(
*
pRow
)[
nCol
];
sc
::
CellValues
&
rStore
=
aSortedCols
.
at
(
nCol
);
rStore
.
append
(
rCell
.
maCell
,
rCell
.
mpAttr
);
ScAddress
aCellPos
(
aSortParam
.
nCol1
+
nCol
,
aSortParam
.
nRow1
+
i
,
nTab
);
rStore
.
append
(
rCell
.
maCell
,
rCell
.
mpAttr
,
aCellPos
);
}
if
(
pProgress
)
...
...
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