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
32ca4302
Kaydet (Commit)
32ca4302
authored
Eki 25, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1326136 Logically dead code
Change-Id: I17c0f7e22e63823c16ebcdc1db1e4f618aad22a1
üst
10db9232
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
_XSheetCellCursor.java
qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.java
+0
-32
No files found.
qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.java
Dosyayı görüntüle @
32ca4302
...
...
@@ -147,7 +147,6 @@ public class _XSheetCellCursor extends MultiMethodTest {
public
void
_collapseToCurrentRegion
(){
boolean
bResult
=
true
;
int
width
=
4
,
height
=
4
;
int
leftCol
=
-
1
,
topRow
=
-
1
;
XSpreadsheet
oSheet
=
oObj
.
getSpreadsheet
();
UnoRuntime
.
queryInterface
(
...
...
@@ -165,37 +164,6 @@ public class _XSheetCellCursor extends MultiMethodTest {
+
" but it is "
+
cols
+
"x"
+
rows
);
}
// if previous test was successful try more complicated case
if
(
bResult
)
{
if
(
leftCol
!=
-
1
&&
topRow
!=
-
1
)
{
try
{
oSheet
.
getCellByPosition
(
leftCol
+
width
,
topRow
+
height
).
setValue
(
1
);
}
catch
(
com
.
sun
.
star
.
lang
.
IndexOutOfBoundsException
e
)
{
log
.
print
(
"Can't get cell by position:"
);
e
.
printStackTrace
(
log
);
bResult
=
false
;
}
oObj
.
collapseToCurrentRegion
()
;
// checking results
cols
=
UnoRuntime
.
queryInterface
(
XColumnRowRange
.
class
,
oObj
).
getColumns
().
getCount
();
rows
=
UnoRuntime
.
queryInterface
(
XColumnRowRange
.
class
,
oObj
).
getRows
().
getCount
();
if
(
cols
==
width
+
1
&&
rows
==
height
+
1
)
{
bResult
&=
true
;
}
else
{
bResult
=
false
;
log
.
println
(
"After collapseToCurrentRegion() call [2]"
+
" region must have size "
+
(
width
+
1
)
+
"x"
+
(
height
+
1
)
+
" but it is "
+
cols
+
"x"
+
rows
);
}
}
}
tRes
.
tested
(
"collapseToCurrentRegion()"
,
bResult
);
// restore original size
...
...
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