Lines 421-428
Link Here
|
421 |
const ScPatternAttr* pPat2 = GetPattern(nCol2, nRow); |
421 |
const ScPatternAttr* pPat2 = GetPattern(nCol2, nRow); |
422 |
if (pPat1 != pPat2) |
422 |
if (pPat1 != pPat2) |
423 |
{ |
423 |
{ |
424 |
SetPattern(nCol1, nRow, *pPat2, sal_True); |
424 |
//maybe the content is the same |
425 |
SetPattern(nCol2, nRow, *pPat1, sal_True); |
425 |
if (!(*pPat1 == *pPat2)) |
|
|
426 |
{ |
427 |
SetPattern(nCol1, nRow, *pPat2, sal_True); |
428 |
SetPattern(nCol2, nRow, *pPat1, sal_True); |
429 |
} |
426 |
} |
430 |
} |
427 |
} |
431 |
} |
428 |
} |
432 |
} |
Lines 439-446
Link Here
|
439 |
const ScPatternAttr* pPat2 = GetPattern(nCol, nRow2); |
443 |
const ScPatternAttr* pPat2 = GetPattern(nCol, nRow2); |
440 |
if (pPat1 != pPat2) |
444 |
if (pPat1 != pPat2) |
441 |
{ |
445 |
{ |
442 |
SetPattern(nCol, nRow1, *pPat2, sal_True); |
446 |
//maybe the content is the same |
443 |
SetPattern(nCol, nRow2, *pPat1, sal_True); |
447 |
if (!(*pPat1 == *pPat2)) |
|
|
448 |
{ |
449 |
SetPattern(nCol, nRow1, *pPat2, sal_True); |
450 |
SetPattern(nCol, nRow2, *pPat1, sal_True); |
451 |
} |
444 |
} |
452 |
} |
445 |
} |
453 |
} |
446 |
} |
454 |
} |