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
f1d40d4f
Kaydet (Commit)
f1d40d4f
authored
Nis 10, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify
Change-Id: I1de47afface7d221f7df43ae4e0bfa7d1cb4f4ce
üst
e51e63e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
20 deletions
+12
-20
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+12
-20
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
f1d40d4f
...
...
@@ -663,31 +663,23 @@ static void lcl_SetTblSeparators(const uno::Any& rVal, SwTable* pTable, SwTableB
const
uno
::
Sequence
<
text
::
TableColumnSeparator
>*
pSepSeq
=
static_cast
<
uno
::
Sequence
<
text
::
TableColumnSeparator
>
const
*>
(
rVal
.
getValue
());
if
(
pSepSeq
&&
static_cast
<
size_t
>
(
pSepSeq
->
getLength
())
==
nOldCount
)
if
(
!
pSepSeq
||
static_cast
<
size_t
>
(
pSepSeq
->
getLength
())
!=
nOldCount
)
return
;
SwTabCols
aCols
(
aOldCols
);
const
text
::
TableColumnSeparator
*
pArray
=
pSepSeq
->
getConstArray
();
long
nLastValue
=
0
;
//sal_Int32 nTblWidth = aCols.GetRight() - aCols.GetLeft();
for
(
size_t
i
=
0
;
i
<
nOldCount
;
++
i
)
{
SwTabCols
aCols
(
aOldCols
);
bool
bError
=
false
;
const
text
::
TableColumnSeparator
*
pArray
=
pSepSeq
->
getConstArray
();
long
nLastValue
=
0
;
//sal_Int32 nTblWidth = aCols.GetRight() - aCols.GetLeft();
for
(
size_t
i
=
0
;
i
<
nOldCount
;
++
i
)
{
aCols
[
i
]
=
pArray
[
i
].
Position
;
if
(
pArray
[
i
].
IsVisible
==
(
aCols
.
IsHidden
(
i
)
?
1
:
0
)
||
aCols
[
i
]
=
pArray
[
i
].
Position
;
if
(
pArray
[
i
].
IsVisible
==
(
aCols
.
IsHidden
(
i
)
?
1
:
0
)
||
(
!
bRow
&&
aCols
.
IsHidden
(
i
))
||
aCols
[
i
]
<
nLastValue
||
UNO_TABLE_COLUMN_SUM
<
aCols
[
i
]
)
{
bError
=
true
;
break
;
}
nLastValue
=
aCols
[
i
];
}
if
(
!
bError
)
{
pDoc
->
SetTabCols
(
*
pTable
,
aCols
,
aOldCols
,
pBox
,
bRow
);
}
return
;
// probably this should assert()
nLastValue
=
aCols
[
i
];
}
pDoc
->
SetTabCols
(
*
pTable
,
aCols
,
aOldCols
,
pBox
,
bRow
);
}
static
inline
OUString
lcl_getString
(
SwXCell
&
rCell
)
...
...
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