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
fd19e3f8
Kaydet (Commit)
fd19e3f8
authored
Şub 19, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: nAnz -> nCount
Change-Id: Ia8c237009634eb0c750db42da4f68a31d40c5368
üst
998d30b6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
tabcol.hxx
sw/inc/tabcol.hxx
+1
-1
tabcol.cxx
sw/source/core/bastyp/tabcol.cxx
+2
-2
tblafmt.cxx
sw/source/core/doc/tblafmt.cxx
+7
-7
No files found.
sw/inc/tabcol.hxx
Dosyayı görüntüle @
fd19e3f8
...
...
@@ -69,7 +69,7 @@ public:
void
Insert
(
long
nValue
,
bool
bValue
,
size_t
nPos
);
void
Insert
(
long
nValue
,
long
nMin
,
long
nMax
,
bool
bValue
,
size_t
nPos
);
void
Remove
(
size_t
nPos
,
size_t
n
Anz
=
1
);
void
Remove
(
size_t
nPos
,
size_t
n
Count
=
1
);
const
SwTabColsEntry
&
GetEntry
(
size_t
nPos
)
const
{
return
aData
[
nPos
];
}
SwTabColsEntry
&
GetEntry
(
size_t
nPos
)
{
return
aData
[
nPos
];
}
...
...
sw/source/core/bastyp/tabcol.cxx
Dosyayı görüntüle @
fd19e3f8
...
...
@@ -105,10 +105,10 @@ void SwTabCols::Insert( long nValue, bool bValue, size_t nPos )
#endif
}
void
SwTabCols
::
Remove
(
size_t
nPos
,
size_t
n
Anz
)
void
SwTabCols
::
Remove
(
size_t
nPos
,
size_t
n
Count
)
{
SwTabColsEntries
::
iterator
aStart
=
aData
.
begin
()
+
nPos
;
aData
.
erase
(
aStart
,
aStart
+
n
Anz
);
aData
.
erase
(
aStart
,
aStart
+
n
Count
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/core/doc/tblafmt.cxx
Dosyayı görüntüle @
fd19e3f8
...
...
@@ -1161,21 +1161,21 @@ bool SwTableAutoFmtTbl::Load( SvStream& rStream )
aVersions
.
Load
(
rStream
,
nVal
);
// Item versions
SwTableAutoFmt
*
pNew
;
sal_uInt16
n
Anz
=
0
;
rStream
.
ReadUInt16
(
n
Anz
);
sal_uInt16
n
Count
=
0
;
rStream
.
ReadUInt16
(
n
Count
);
bRet
=
0
==
rStream
.
GetError
();
if
(
bRet
)
{
const
size_t
nMinRecordSize
=
sizeof
(
sal_uInt16
);
const
size_t
nMaxRecords
=
rStream
.
remainingSize
()
/
nMinRecordSize
;
if
(
n
Anz
>
nMaxRecords
)
if
(
n
Count
>
nMaxRecords
)
{
SAL_WARN
(
"
vcl.gdi
"
,
"Parsing error: "
<<
nMaxRecords
<<
" max possible entries, but "
<<
n
Anz
<<
" claimed, truncating"
);
n
Anz
=
nMaxRecords
;
SAL_WARN
(
"
sw.core
"
,
"Parsing error: "
<<
nMaxRecords
<<
" max possible entries, but "
<<
n
Count
<<
" claimed, truncating"
);
n
Count
=
nMaxRecords
;
}
for
(
sal_uInt16
i
=
0
;
i
<
n
Anz
;
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<
n
Count
;
++
i
)
{
pNew
=
new
SwTableAutoFmt
(
OUString
()
);
bRet
=
pNew
->
Load
(
rStream
,
aVersions
);
...
...
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