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
530d3c92
Kaydet (Commit)
530d3c92
authored
Şub 26, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make arbitrary number a constant and add comment on fishiness
Change-Id: I65baf9e4583c78ca3128352112fdeeffce3b3225
üst
6ee7900b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
fetab.cxx
sw/source/core/frmedt/fetab.cxx
+3
-1
No files found.
sw/source/core/frmedt/fetab.cxx
Dosyayı görüntüle @
530d3c92
...
...
@@ -84,8 +84,10 @@ const SwFrm *pRowCacheLastCellFrm = 0;
class
TblWait
{
const
::
std
::
unique_ptr
<
SwWait
>
m_pWait
;
// this seems really fishy: do some locking, if an arbitrary number of lines is exceeded
static
const
size_t
our_kLineLimit
=
20
;
bool
ShouldWait
(
size_t
nCnt
,
SwFrm
*
pFrm
,
size_t
nCnt2
)
{
return
20
<
nCnt
||
20
<
nCnt2
||
(
pFrm
&&
20
<
pFrm
->
ImplFindTabFrm
()
->
GetTable
()
->
GetTabLines
().
size
());
}
{
return
our_kLineLimit
<
nCnt
||
our_kLineLimit
<
nCnt2
||
(
pFrm
&&
our_kLineLimit
<
pFrm
->
ImplFindTabFrm
()
->
GetTable
()
->
GetTabLines
().
size
());
}
public
:
TblWait
(
size_t
nCnt
,
SwFrm
*
pFrm
,
SwDocShell
&
rDocShell
,
size_t
nCnt2
=
0
)
:
m_pWait
(
ShouldWait
(
nCnt
,
pFrm
,
nCnt2
)
?
::
std
::
unique_ptr
<
SwWait
>
(
new
SwWait
(
rDocShell
,
true
))
:
nullptr
)
...
...
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