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
c18d4753
Kaydet (Commit)
c18d4753
authored
Şub 13, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Small code cleanup
Change-Id: I3e39e48a42fd593b03e971dd032e46c5287897a7
üst
964e8203
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
txtfrm.cxx
sw/source/core/text/txtfrm.cxx
+3
-4
No files found.
sw/source/core/text/txtfrm.cxx
Dosyayı görüntüle @
c18d4753
...
@@ -1396,15 +1396,13 @@ void SwTxtFrm::PrepWidows( const MSHORT nNeed, sal_Bool bNotify )
...
@@ -1396,15 +1396,13 @@ void SwTxtFrm::PrepWidows( const MSHORT nNeed, sal_Bool bNotify )
// muss der Master darueber hinaus die Widow-Regel ueberpruefen.
// muss der Master darueber hinaus die Widow-Regel ueberpruefen.
if
(
!
nHave
)
if
(
!
nHave
)
{
{
bool
bSplit
;
bool
bSplit
=
true
;
if
(
!
IsFollow
()
)
// only a master decides about orphans
if
(
!
IsFollow
()
)
// only a master decides about orphans
{
{
const
WidowsAndOrphans
aWidOrp
(
this
);
const
WidowsAndOrphans
aWidOrp
(
this
);
bSplit
=
(
aLine
.
GetLineNr
()
>=
aWidOrp
.
GetOrphansLines
()
&&
bSplit
=
(
aLine
.
GetLineNr
()
>=
aWidOrp
.
GetOrphansLines
()
&&
aLine
.
GetLineNr
()
>=
aLine
.
GetDropLines
()
);
aLine
.
GetLineNr
()
>=
aLine
.
GetDropLines
()
);
}
}
else
bSplit
=
true
;
if
(
bSplit
)
if
(
bSplit
)
{
{
...
@@ -2002,7 +2000,8 @@ sal_Bool SwTxtFrm::WouldFit( SwTwips &rMaxHeight, sal_Bool &bSplit, sal_Bool bTs
...
@@ -2002,7 +2000,8 @@ sal_Bool SwTxtFrm::WouldFit( SwTwips &rMaxHeight, sal_Bool &bSplit, sal_Bool bTs
aLine
.
Bottom
();
aLine
.
Bottom
();
// is breaking necessary?
// is breaking necessary?
if
(
0
!=
(
bSplit
=
!
aFrmBreak
.
IsInside
(
aLine
)
)
)
bSplit
=
!
aFrmBreak
.
IsInside
(
aLine
);
if
(
bSplit
)
bRet
=
!
aFrmBreak
.
IsKeepAlways
()
&&
aFrmBreak
.
WouldFit
(
aLine
,
rMaxHeight
,
bTst
);
bRet
=
!
aFrmBreak
.
IsKeepAlways
()
&&
aFrmBreak
.
WouldFit
(
aLine
,
rMaxHeight
,
bTst
);
else
else
{
{
...
...
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