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
848e020f
Kaydet (Commit)
848e020f
authored
May 14, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move Resize code to Paint for ScTextWnd
Change-Id: Icd0e12e02b808c3cf1eacd15021cdf249bdcfab3
üst
71131e2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
inputwin.cxx
sc/source/ui/app/inputwin.cxx
+5
-8
No files found.
sc/source/ui/app/inputwin.cxx
Dosyayı görüntüle @
848e020f
...
@@ -1518,6 +1518,10 @@ void ScTextWnd::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect
...
@@ -1518,6 +1518,10 @@ void ScTextWnd::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect
{
{
if
(
pEditView
)
if
(
pEditView
)
{
{
Size
aSize
=
rRenderContext
.
GetOutputSizePixel
();
long
nDiff
=
aSize
.
Height
()
-
rRenderContext
.
LogicToPixel
(
Size
(
0
,
rRenderContext
.
GetTextHeight
())).
Height
();
pEditView
->
SetOutputArea
(
rRenderContext
.
PixelToLogic
(
Rectangle
(
Point
(
0
,
(
nDiff
>
0
)
?
nDiff
/
2
:
1
),
aSize
)));
pEditView
->
Paint
(
rRect
,
&
rRenderContext
);
pEditView
->
Paint
(
rRect
,
&
rRenderContext
);
}
}
else
else
...
@@ -1544,14 +1548,7 @@ void ScTextWnd::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect
...
@@ -1544,14 +1548,7 @@ void ScTextWnd::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect
void
ScTextWnd
::
Resize
()
void
ScTextWnd
::
Resize
()
{
{
if
(
pEditView
)
Invalidate
();
{
Size
aSize
=
GetOutputSizePixel
();
long
nDiff
=
aSize
.
Height
()
-
LogicToPixel
(
Size
(
0
,
GetTextHeight
()
)
).
Height
();
pEditView
->
SetOutputArea
(
PixelToLogic
(
Rectangle
(
Point
(
0
,
(
nDiff
>
0
)
?
nDiff
/
2
:
1
),
aSize
)
)
);
}
}
}
void
ScTextWnd
::
MouseMove
(
const
MouseEvent
&
rMEvt
)
void
ScTextWnd
::
MouseMove
(
const
MouseEvent
&
rMEvt
)
...
...
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