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
691e2f97
Kaydet (Commit)
691e2f97
authored
Haz 06, 2012
tarafından
Herbert Dürr
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i118877# updated fix for Calc crash when Redo refreshes data
Patch by: Lei Debin
üst
9268b63d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
table3.cxx
sc/source/core/data/table3.cxx
+11
-12
poolitem.hxx
svl/inc/svl/poolitem.hxx
+1
-1
No files found.
sc/source/core/data/table3.cxx
Dosyayı görüntüle @
691e2f97
...
@@ -421,12 +421,12 @@ void ScTable::SwapCol(SCCOL nCol1, SCCOL nCol2)
...
@@ -421,12 +421,12 @@ void ScTable::SwapCol(SCCOL nCol1, SCCOL nCol2)
const
ScPatternAttr
*
pPat2
=
GetPattern
(
nCol2
,
nRow
);
const
ScPatternAttr
*
pPat2
=
GetPattern
(
nCol2
,
nRow
);
if
(
pPat1
!=
pPat2
)
if
(
pPat1
!=
pPat2
)
{
{
//
maybe the content is the same
//
Add Reference to avoid pPat1 to be deleted by merge same cell attributes for adjacent cells
if
(
!
(
*
pPat1
==
*
pPat2
))
if
(
IsPooledItem
(
pPat1
)
)
pPat1
->
AddRef
();
{
SetPattern
(
nCol1
,
nRow
,
*
pPat2
,
sal_True
);
SetPattern
(
nCol1
,
nRow
,
*
pPat2
,
sal_True
);
SetPattern
(
nCol2
,
nRow
,
*
pPat1
,
sal_True
);
SetPattern
(
nCol2
,
nRow
,
*
pPat1
,
sal_True
);
if
(
IsPooledItem
(
pPat1
)
)
pPat1
->
ReleaseRef
(
);
}
}
}
}
}
}
}
...
@@ -443,12 +443,11 @@ void ScTable::SwapRow(SCROW nRow1, SCROW nRow2)
...
@@ -443,12 +443,11 @@ void ScTable::SwapRow(SCROW nRow1, SCROW nRow2)
const
ScPatternAttr
*
pPat2
=
GetPattern
(
nCol
,
nRow2
);
const
ScPatternAttr
*
pPat2
=
GetPattern
(
nCol
,
nRow2
);
if
(
pPat1
!=
pPat2
)
if
(
pPat1
!=
pPat2
)
{
{
//maybe the content is the same
//Add Reference to avoid pPat1 to be deleted by merge same cell attributes for adjacent cells
if
(
!
(
*
pPat1
==
*
pPat2
))
if
(
IsPooledItem
(
pPat1
)
)
pPat1
->
AddRef
();
{
SetPattern
(
nCol
,
nRow1
,
*
pPat2
,
sal_True
);
SetPattern
(
nCol
,
nRow1
,
*
pPat2
,
sal_True
);
SetPattern
(
nCol
,
nRow2
,
*
pPat1
,
sal_True
);
SetPattern
(
nCol
,
nRow2
,
*
pPat1
,
sal_True
);
if
(
IsPooledItem
(
pPat1
)
)
pPat1
->
ReleaseRef
();
}
}
}
}
}
}
}
...
...
svl/inc/svl/poolitem.hxx
Dosyayı görüntüle @
691e2f97
...
@@ -188,8 +188,8 @@ private:
...
@@ -188,8 +188,8 @@ private:
inline
void
SetKind
(
sal_uInt16
n
);
inline
void
SetKind
(
sal_uInt16
n
);
public
:
public
:
inline
sal_uLong
AddRef
(
sal_uLong
n
=
1
)
const
;
inline
sal_uLong
AddRef
(
sal_uLong
n
=
1
)
const
;
private
:
inline
sal_uLong
ReleaseRef
(
sal_uLong
n
=
1
)
const
;
inline
sal_uLong
ReleaseRef
(
sal_uLong
n
=
1
)
const
;
private
:
SVL_DLLPRIVATE
long
Delete_Impl
(
void
*
);
SVL_DLLPRIVATE
long
Delete_Impl
(
void
*
);
#if 0
#if 0
...
...
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