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
3cc52de5
Kaydet (Commit)
3cc52de5
authored
Eyl 24, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
return early on no-op cases, no logic change
Change-Id: I7041ac2268d1df8b37e380ccde926d5aec06510e
üst
876e63e6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
colex.cxx
sw/source/uibase/frmdlg/colex.cxx
+10
-10
No files found.
sw/source/uibase/frmdlg/colex.cxx
Dosyayı görüntüle @
3cc52de5
...
...
@@ -210,15 +210,18 @@ void SwColExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOr
const
bool
bSecond
,
const
bool
bEnabled
)
{
SwPageExample
::
DrawPage
(
rRenderContext
,
rOrg
,
bSecond
,
bEnabled
);
sal_uInt16
nColumnCount
;
if
(
pColMgr
&&
0
!=
(
nColumnCount
=
pColMgr
->
GetCount
()))
{
if
(
!
pColMgr
)
return
;
sal_uInt16
nColumnCount
=
pColMgr
->
GetCount
();
if
(
!
nColumnCount
)
return
;
long
nL
=
GetLeft
();
long
nR
=
GetRight
();
if
(
GetUsage
()
==
SVX_PAGE_MIRROR
&&
!
bSecond
)
{
// rotate
for mirrored
// swap
for mirrored
nL
=
GetRight
();
nR
=
GetLeft
();
}
...
...
@@ -254,14 +257,12 @@ void SwColExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOr
if
(
bAutoWidth
)
{
sal_Int32
nColumnWidthSum
=
0
;
sal_uInt16
i
;
for
(
i
=
0
;
i
<
nColumnCount
;
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<
nColumnCount
;
++
i
)
nColumnWidthSum
+=
pColMgr
->
GetColWidth
(
i
);
nAutoColWidth
=
nColumnWidthSum
/
nColumnCount
;
}
sal_uInt16
i
;
for
(
i
=
0
;
i
<
nColumnCount
;
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
nColumnCount
;
++
i
)
{
if
(
!
bAutoWidth
)
nAutoColWidth
=
pColMgr
->
GetColWidth
(
i
);
...
...
@@ -295,7 +296,7 @@ void SwColExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOr
}
}
for
(
i
=
0
;
i
<
nColumnCount
-
1
;
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
nColumnCount
-
1
;
++
i
)
{
int
nGutter
=
pColMgr
->
GetGutterWidth
(
i
);
int
nDist
=
pColMgr
->
GetColWidth
(
i
)
+
nGutter
;
...
...
@@ -305,7 +306,6 @@ void SwColExample::DrawPage(vcl::RenderContext& rRenderContext, const Point& rOr
rRenderContext
.
DrawLine
(
aUp
,
aDown
);
}
}
}
}
VCL_BUILDER_FACTORY
(
SwColExample
)
...
...
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