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
64e416d4
Kaydet (Commit)
64e416d4
authored
Ara 20, 2011
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix small problem with range names in copy/paste
üst
5e305983
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ucalc.cxx
sc/qa/unit/ucalc.cxx
+2
-2
cell.cxx
sc/source/core/data/cell.cxx
+5
-1
No files found.
sc/qa/unit/ucalc.cxx
Dosyayı görüntüle @
64e416d4
...
...
@@ -184,7 +184,7 @@ public:
CPPUNIT_TEST
(
testFunctionLists
);
CPPUNIT_TEST
(
testToggleRefFlag
);
CPPUNIT_TEST
(
testAutofilter
);
//
CPPUNIT_TEST(testCopyPaste);
CPPUNIT_TEST
(
testCopyPaste
);
CPPUNIT_TEST
(
testMergedCells
);
CPPUNIT_TEST
(
testUpdateReference
);
CPPUNIT_TEST_SUITE_END
();
...
...
@@ -2738,8 +2738,8 @@ void Test::testCopyPaste()
//check values after copying
rtl
::
OUString
aString
;
m_pDoc
->
GetValue
(
1
,
1
,
1
,
aValue
);
CPPUNIT_ASSERT_MESSAGE
(
"copied formula should return 2"
,
aValue
==
2
);
m_pDoc
->
GetFormula
(
1
,
1
,
1
,
aString
);
CPPUNIT_ASSERT_MESSAGE
(
"copied formula should return 2"
,
aValue
==
2
);
CPPUNIT_ASSERT_MESSAGE
(
"formula string was not copied correctly"
,
aString
==
aFormulaString
);
m_pDoc
->
GetValue
(
0
,
1
,
1
,
aValue
);
CPPUNIT_ASSERT_MESSAGE
(
"copied value should be 1"
,
aValue
==
1
);
...
...
sc/source/core/data/cell.cxx
Dosyayı görüntüle @
64e416d4
...
...
@@ -180,7 +180,11 @@ void adjustRangeName(ScToken* pToken, ScDocument& rNewDoc, const ScDocument* pOl
bNewGlobal
=
bOldGlobal
;
pRangeData
=
new
ScRangeData
(
*
pOldRangeData
,
&
rNewDoc
);
ScTokenArray
*
pRangeNameToken
=
pRangeData
->
GetCode
();
pRangeNameToken
->
ReadjusteAbsolute3DReferences
(
pOldDoc
,
&
rNewDoc
,
pRangeData
->
GetPos
(),
true
);
if
(
rNewDoc
.
GetPool
()
!=
const_cast
<
ScDocument
*>
(
pOldDoc
)
->
GetPool
())
{
pRangeNameToken
->
ReadjusteAbsolute3DReferences
(
pOldDoc
,
&
rNewDoc
,
pRangeData
->
GetPos
(),
true
);
}
bool
bInserted
;
if
(
bNewGlobal
)
bInserted
=
rNewDoc
.
GetRangeName
()
->
insert
(
pRangeData
);
...
...
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