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
f8dada57
Kaydet (Commit)
f8dada57
authored
Eki 13, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix memory leak in note handling
Change-Id: I55a7673aff8e23f59ccb99ea73a102df215ba599
üst
262079b2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
Module_sc.mk
sc/Module_sc.mk
+0
-1
postit.hxx
sc/inc/postit.hxx
+3
-2
postit.cxx
sc/source/core/data/postit.cxx
+3
-4
table2.cxx
sc/source/core/data/table2.cxx
+1
-1
No files found.
sc/Module_sc.mk
Dosyayı görüntüle @
f8dada57
...
@@ -44,7 +44,6 @@ endif
...
@@ -44,7 +44,6 @@ endif
$(eval $(call gb_Module_add_check_targets,sc,\
$(eval $(call gb_Module_add_check_targets,sc,\
CppunitTest_sc_ucalc \
CppunitTest_sc_ucalc \
CppunitTest_sc_rangelst_test \
))
))
# Disabled to allow the check tinderbox execute the sd tests
# Disabled to allow the check tinderbox execute the sd tests
...
...
sc/inc/postit.hxx
Dosyayı görüntüle @
f8dada57
...
@@ -266,10 +266,11 @@ private:
...
@@ -266,10 +266,11 @@ private:
typedef
std
::
map
<
ScAddress2D
,
ScPostIt
*>
ScNoteMap
;
typedef
std
::
map
<
ScAddress2D
,
ScPostIt
*>
ScNoteMap
;
ScNoteMap
maNoteMap
;
ScNoteMap
maNoteMap
;
ScNotes
(
const
ScNotes
&
rNotes
);
ScNotes
operator
=
(
const
ScNotes
&
rNotes
);
ScDocument
*
mpDoc
;
ScDocument
*
mpDoc
;
public
:
public
:
ScNotes
(
ScDocument
*
pDoc
);
ScNotes
(
ScDocument
*
pDoc
);
ScNotes
(
const
ScNotes
&
rNotes
);
~
ScNotes
();
~
ScNotes
();
typedef
ScNoteMap
::
iterator
iterator
;
typedef
ScNoteMap
::
iterator
iterator
;
...
@@ -306,7 +307,7 @@ public:
...
@@ -306,7 +307,7 @@ public:
void
clear
();
void
clear
();
ScNotes
*
clone
(
ScDocument
*
pDoc
,
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
,
bool
bCloneNoteCaption
,
SCTAB
nTab
);
void
clone
(
ScDocument
*
pDoc
,
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
,
bool
bCloneNoteCaption
,
SCTAB
nTab
,
ScNotes
&
rTarget
);
void
CopyFromClip
(
const
ScNotes
&
maNotes
,
ScDocument
*
pDoc
,
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
,
SCsCOL
nDx
,
SCsROW
nDy
,
SCTAB
nTab
,
bool
bCloneCaption
);
void
CopyFromClip
(
const
ScNotes
&
maNotes
,
ScDocument
*
pDoc
,
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
,
SCsCOL
nDx
,
SCsROW
nDy
,
SCTAB
nTab
,
bool
bCloneCaption
);
void
erase
(
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
,
bool
bForgetCaption
=
false
);
void
erase
(
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
,
bool
bForgetCaption
=
false
);
...
...
sc/source/core/data/postit.cxx
Dosyayı görüntüle @
f8dada57
...
@@ -1057,9 +1057,9 @@ void ScNotes::clear()
...
@@ -1057,9 +1057,9 @@ void ScNotes::clear()
maNoteMap
.
clear
();
maNoteMap
.
clear
();
}
}
ScNotes
*
ScNotes
::
clone
(
ScDocument
*
pDoc
,
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
,
bool
bCloneNoteCaption
,
SCTAB
nTab
)
void
ScNotes
::
clone
(
ScDocument
*
pDoc
,
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
,
bool
bCloneNoteCaption
,
SCTAB
nTab
,
ScNotes
&
rTarget
)
{
{
ScNotes
*
pNotes
=
new
ScNotes
(
pDoc
);
rTarget
.
clear
(
);
for
(
ScNotes
::
iterator
itr
=
maNoteMap
.
begin
();
itr
!=
maNoteMap
.
end
();
++
itr
)
for
(
ScNotes
::
iterator
itr
=
maNoteMap
.
begin
();
itr
!=
maNoteMap
.
end
();
++
itr
)
{
{
SCCOL
nCol
=
itr
->
first
.
first
;
SCCOL
nCol
=
itr
->
first
.
first
;
...
@@ -1067,10 +1067,9 @@ ScNotes* ScNotes::clone(ScDocument* pDoc, SCCOL nCol1, SCROW nRow1, SCCOL nCol2,
...
@@ -1067,10 +1067,9 @@ ScNotes* ScNotes::clone(ScDocument* pDoc, SCCOL nCol1, SCROW nRow1, SCCOL nCol2,
if
(
nCol
>=
nCol1
&&
nCol
<=
nCol2
&&
nRow
>=
nRow1
&&
nRow
<=
nRow2
)
if
(
nCol
>=
nCol1
&&
nCol
<=
nCol2
&&
nRow
>=
nRow1
&&
nRow
<=
nRow2
)
{
{
pNotes
->
insert
(
nCol
,
nRow
,
itr
->
second
->
Clone
(
ScAddress
(
nCol
,
nRow
,
nTab
),
*
pDoc
,
ScAddress
(
nCol
,
nRow
,
nTab
),
bCloneNoteCaption
));
rTarget
.
insert
(
nCol
,
nRow
,
itr
->
second
->
Clone
(
ScAddress
(
nCol
,
nRow
,
nTab
),
*
pDoc
,
ScAddress
(
nCol
,
nRow
,
nTab
),
bCloneNoteCaption
));
}
}
}
}
return
pNotes
;
}
}
void
ScNotes
::
CopyFromClip
(
const
ScNotes
&
rNotes
,
ScDocument
*
pDoc
,
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
,
SCsCOL
nDx
,
SCsROW
nDy
,
SCTAB
nTab
,
bool
bCloneCaption
)
void
ScNotes
::
CopyFromClip
(
const
ScNotes
&
rNotes
,
ScDocument
*
pDoc
,
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
,
SCsCOL
nDx
,
SCsROW
nDy
,
SCTAB
nTab
,
bool
bCloneCaption
)
...
...
sc/source/core/data/table2.cxx
Dosyayı görüntüle @
f8dada57
...
@@ -611,7 +611,7 @@ void ScTable::CopyToClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
...
@@ -611,7 +611,7 @@ void ScTable::CopyToClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
pTable
->
mpRangeName
=
new
ScRangeName
(
*
mpRangeName
);
pTable
->
mpRangeName
=
new
ScRangeName
(
*
mpRangeName
);
// notes
// notes
pTable
->
maNotes
=
*
maNotes
.
clone
(
pTable
->
pDocument
,
nCol1
,
nRow1
,
nCol2
,
nRow2
,
bCloneNoteCaptions
,
nTab
);
maNotes
.
clone
(
pTable
->
pDocument
,
nCol1
,
nRow1
,
nCol2
,
nRow2
,
bCloneNoteCaptions
,
nTab
,
pTable
->
maNotes
);
SCCOL
i
;
SCCOL
i
;
...
...
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