Lines 1290-1300
Link Here
|
1290 |
SCCOL nCol = pViewData->GetCurX(); |
1291 |
SCCOL nCol = pViewData->GetCurX(); |
1291 |
SCROW nRow = pViewData->GetCurY(); |
1292 |
SCROW nRow = pViewData->GetCurY(); |
1292 |
SCTAB nTab = pViewData->GetTabNo(); |
1293 |
SCTAB nTab = pViewData->GetTabNo(); |
1293 |
ScPatternAttr* pOldPat = new ScPatternAttr(*pDoc->GetPattern( nCol, nRow, nTab )); |
1294 |
const ScPatternAttr* pTrueOldPat = pDoc->GetPattern( nCol, nRow, nTab ); |
|
|
1295 |
ScPatternAttr* pOldPat = new ScPatternAttr(*pTrueOldPat); |
1294 |
|
1296 |
|
1295 |
pDoc->ApplyPattern( nCol, nRow, nTab, rAttr ); |
1297 |
pDoc->ApplyPattern( nCol, nRow, nTab, rAttr ); |
1296 |
|
1298 |
|
1297 |
const ScPatternAttr* pNewPat = pDoc->GetPattern( nCol, nRow, nTab ); |
1299 |
const ScPatternAttr* pNewPat = pDoc->GetPattern( nCol, nRow, nTab ); |
|
|
1300 |
|
1301 |
if (pNewPat != pTrueOldPat) |
1302 |
{ |
1303 |
ScInputHandler* pHdl = SC_MOD()->GetInputHdl(); |
1304 |
if (pHdl) |
1305 |
pHdl->NeedReplaceLastPattern(pTrueOldPat, pNewPat); |
1306 |
} |
1298 |
|
1307 |
|
1299 |
if (bRecord) |
1308 |
if (bRecord) |
1300 |
{ |
1309 |
{ |