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
288d12ba
Kaydet (Commit)
288d12ba
authored
Agu 13, 2014
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
warning C4245 signed/unsigned mismatch
Change-Id: If6222d61a6c75996ce5c40b3eae7895982c49b4a
üst
d7e5ad0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
swregion.cxx
sw/source/core/bastyp/swregion.cxx
+5
-3
No files found.
sw/source/core/bastyp/swregion.cxx
Dosyayı görüntüle @
288d12ba
...
@@ -143,8 +143,9 @@ inline SwTwips CalcArea( const SwRect &rRect )
...
@@ -143,8 +143,9 @@ inline SwTwips CalcArea( const SwRect &rRect )
// combine all adjacent rectangles
// combine all adjacent rectangles
void
SwRegionRects
::
Compress
(
bool
bFuzzy
)
void
SwRegionRects
::
Compress
(
bool
bFuzzy
)
{
{
for
(
size_type
i
=
0
;
i
<
size
();
++
i
)
for
(
size_type
i
=
0
;
i
<
size
();
)
{
{
bool
bRestart
(
false
);
for
(
size_type
j
=
i
+
1
;
j
<
size
();
++
j
)
for
(
size_type
j
=
i
+
1
;
j
<
size
();
++
j
)
{
{
// If one rectangle contains a second completely than the latter
// If one rectangle contains a second completely than the latter
...
@@ -158,7 +159,7 @@ void SwRegionRects::Compress( bool bFuzzy )
...
@@ -158,7 +159,7 @@ void SwRegionRects::Compress( bool bFuzzy )
{
{
(
*
this
)[
i
]
=
(
*
this
)[
j
];
(
*
this
)[
i
]
=
(
*
this
)[
j
];
erase
(
begin
()
+
j
);
erase
(
begin
()
+
j
);
i
=
-
1
;
bRestart
=
true
;
break
;
break
;
}
}
else
else
...
@@ -180,11 +181,12 @@ void SwRegionRects::Compress( bool bFuzzy )
...
@@ -180,11 +181,12 @@ void SwRegionRects::Compress( bool bFuzzy )
{
{
(
*
this
)[
i
]
=
aUnion
;
(
*
this
)[
i
]
=
aUnion
;
erase
(
begin
()
+
j
);
erase
(
begin
()
+
j
);
i
=
-
1
;
bRestart
=
true
;
break
;
break
;
}
}
}
}
}
}
i
=
(
bRestart
)
?
0
:
i
+
1
;
}
}
}
}
...
...
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