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
246aba2a
Kaydet (Commit)
246aba2a
authored
Haz 06, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735802 Unchecked dynamic_cast
Change-Id: I798d5a5f1e28e88b23f478d241a8fcd7519f905f
üst
11e17447
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
inputwin.cxx
sc/source/ui/app/inputwin.cxx
+6
-7
No files found.
sc/source/ui/app/inputwin.cxx
Dosyayı görüntüle @
246aba2a
...
...
@@ -1096,15 +1096,14 @@ IMPL_LINK_NOARG(ScInputBarGroup, ClickHdl)
void
ScInputBarGroup
::
TriggerToolboxLayout
()
{
Window
*
w
=
GetParent
();
ScInputWindow
*
pParent
;
pParent
=
dynamic_cast
<
ScInputWindow
*>
(
w
);
ScInputWindow
&
rParent
=
dynamic_cast
<
ScInputWindow
&>
(
*
w
);
SfxViewFrame
*
pViewFrm
=
SfxViewFrame
::
Current
();
// Capture the vertical position of this window in the toolbar, when we increase
// the size of the toolbar to accomadate expanded line input we need to take this
// into account
if
(
!
nVertOffset
)
nVertOffset
=
pParent
->
GetItemPosRect
(
pParent
->
GetItemCount
()
-
1
).
Top
();
nVertOffset
=
rParent
.
GetItemPosRect
(
rParent
.
GetItemCount
()
-
1
).
Top
();
if
(
pViewFrm
)
{
...
...
@@ -1120,9 +1119,9 @@ void ScInputBarGroup::TriggerToolboxLayout()
if
(
xLayoutManager
.
is
()
)
{
if
(
aMultiTextWnd
.
GetNumLines
()
>
1
)
pParent
->
SetToolbarLayoutMode
(
TBX_LAYOUT_LOCKVERT
);
rParent
.
SetToolbarLayoutMode
(
TBX_LAYOUT_LOCKVERT
);
else
pParent
->
SetToolbarLayoutMode
(
TBX_LAYOUT_NORMAL
);
rParent
.
SetToolbarLayoutMode
(
TBX_LAYOUT_NORMAL
);
xLayoutManager
->
lock
();
DataChangedEvent
aFakeUpdate
(
DATACHANGED_SETTINGS
,
NULL
,
SETTINGS_STYLE
);
// this basically will trigger the reposititioning of the
...
...
@@ -1131,11 +1130,11 @@ void ScInputBarGroup::TriggerToolboxLayout()
// controlled by mbCalc. Additionally the ImplFormat above is
// controlled via mbFormat. It seems the easiest way to get these
// booleans set is to send in the fake event below.
pParent
->
DataChanged
(
aFakeUpdate
);
rParent
.
DataChanged
(
aFakeUpdate
);
// highest item in toolbar will have been calculated via the
// event above. Call resize on InputBar to pick up the height
// change
pParent
->
Resize
();
rParent
.
Resize
();
// unlock relayouts the toolbars in the 4 quadrants
xLayoutManager
->
unlock
();
}
...
...
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