Kaydet (Commit) f8d290f9 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Get it to build after the merge & removed a warning.

üst 9a3cc6c0
...@@ -83,6 +83,7 @@ public: ...@@ -83,6 +83,7 @@ public:
void insertSegment(SCROW nRow, SCROW nSize, bool bSkipStartBoundary); void insertSegment(SCROW nRow, SCROW nSize, bool bSkipStartBoundary);
void enableTreeSearch(bool bEnable); void enableTreeSearch(bool bEnable);
void setInsertFromBack(bool bInsertFromBack);
SCROW findLastNotOf(bool bValue) const; SCROW findLastNotOf(bool bValue) const;
private: private:
......
...@@ -413,6 +413,11 @@ void ScFlatBoolRowSegments::enableTreeSearch(bool bEnable) ...@@ -413,6 +413,11 @@ void ScFlatBoolRowSegments::enableTreeSearch(bool bEnable)
mpImpl->enableTreeSearch(bEnable); mpImpl->enableTreeSearch(bEnable);
} }
void ScFlatBoolRowSegments::setInsertFromBack(bool bEnable)
{
mpImpl->setInsertFromBack(bEnable);
}
SCROW ScFlatBoolRowSegments::findLastNotOf(bool bValue) const SCROW ScFlatBoolRowSegments::findLastNotOf(bool bValue) const
{ {
return static_cast<SCROW>(mpImpl->findLastNotOf(bValue)); return static_cast<SCROW>(mpImpl->findLastNotOf(bValue));
......
...@@ -781,8 +781,12 @@ void ScTable::CopyToTable(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, ...@@ -781,8 +781,12 @@ void ScTable::CopyToTable(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
std::vector<ScShowRowsEntry> aEntries; std::vector<ScShowRowsEntry> aEntries;
for (SCROW i = nRow1; i <= nRow2; ++i) for (SCROW i = nRow1; i <= nRow2; ++i)
{ {
SCROW nLastRow; SCROW nThisLastRow, nDestLastRow;
bool bHidden = RowHidden(i, NULL, &nLastRow); bool bThisHidden = RowHidden(i, NULL, &nThisLastRow);
bool bDestHidden = pDestTab->RowHidden(i, NULL, &nDestLastRow);
// If the segment sizes differ, we take the shorter segment of the two.
SCROW nLastRow = ::std::min(nThisLastRow, nDestLastRow);
if (nLastRow >= nRow2) if (nLastRow >= nRow2)
// the last row shouldn't exceed the upper bound the caller specified. // the last row shouldn't exceed the upper bound the caller specified.
nLastRow = nRow2; nLastRow = nRow2;
...@@ -795,10 +799,12 @@ void ScTable::CopyToTable(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, ...@@ -795,10 +799,12 @@ void ScTable::CopyToTable(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
{ {
// Hidden flags differ. // Hidden flags differ.
pCharts->SetRangeDirty(ScRange(0, i, nTab, MAXCOL, nLastRow, nTab)); pCharts->SetRangeDirty(ScRange(0, i, nTab, MAXCOL, nLastRow, nTab));
}
if (bHiddenChanged) if (bThisHiddenChange)
bFlagChange = true; bFlagChange = true;
// Jump to the last row of the identical flag segment.
i = nLastRow; i = nLastRow;
} }
......
...@@ -1638,7 +1638,6 @@ SCSIZE ScTable::Query(ScQueryParam& rParamOrg, BOOL bKeepSub) ...@@ -1638,7 +1638,6 @@ SCSIZE ScTable::Query(ScQueryParam& rParamOrg, BOOL bKeepSub)
BOOL* pSpecial = new BOOL[nEntryCount]; BOOL* pSpecial = new BOOL[nEntryCount];
lcl_PrepareQuery( pDocument, this, aParam, pSpecial ); lcl_PrepareQuery( pDocument, this, aParam, pSpecial );
SCROW nEndRow = aParam.bUseDynamicRange ? aParam.nDynamicEndRow : aParam.nRow2;
if (!aParam.bInplace) if (!aParam.bInplace)
{ {
nOutRow = aParam.nDestRow + nHeader; nOutRow = aParam.nDestRow + nHeader;
...@@ -1655,7 +1654,8 @@ SCSIZE ScTable::Query(ScQueryParam& rParamOrg, BOOL bKeepSub) ...@@ -1655,7 +1654,8 @@ SCSIZE ScTable::Query(ScQueryParam& rParamOrg, BOOL bKeepSub)
ScDrawLayer* pDrawLayer = pDocument->GetDrawLayer(); ScDrawLayer* pDrawLayer = pDocument->GetDrawLayer();
bool bHasObjects = pDrawLayer && pDrawLayer->HasObjectsInRows( nTab, aParam.nRow1 + nHeader, aParam.nRow2, false ); bool bHasObjects = pDrawLayer && pDrawLayer->HasObjectsInRows( nTab, aParam.nRow1 + nHeader, aParam.nRow2, false );
for (SCROW j=aParam.nRow1 + nHeader; j<=aParam.nRow2; j++) SCROW nRealRow2 = aParam.bUseDynamicRange ? aParam.nDynamicEndRow : aParam.nRow2;
for (SCROW j = aParam.nRow1 + nHeader; j <= nRealRow2; ++j)
{ {
BOOL bResult; // Filterergebnis BOOL bResult; // Filterergebnis
BOOL bValid = ValidQuery(j, aParam, pSpecial); BOOL bValid = ValidQuery(j, aParam, pSpecial);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment