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
dd0f6c73
Kaydet (Commit)
dd0f6c73
authored
Agu 30, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#66700 don't crash on querying zoom state with no SfxObjectShell
Change-Id: Id2943c92ce6deaae3e4d507a35c08466db21cece
üst
0f3895a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
appserv.cxx
sfx2/source/appl/appserv.cxx
+9
-2
No files found.
sfx2/source/appl/appserv.cxx
Dosyayı görüntüle @
dd0f6c73
...
...
@@ -602,6 +602,10 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
case
SID_ZOOM_ENTIRE_PAGE
:
case
SID_ZOOM_PAGE_WIDTH
:
{
SfxObjectShell
*
pCurrentShell
=
SfxObjectShell
::
Current
();
if
(
!
pCurrentShell
)
return
;
// make sure aZoom is initialized with a proper value if SetType
// doesn't work
SvxZoomItem
aZoom
(
SVX_ZOOM_PERCENT
,
100
);
...
...
@@ -634,7 +638,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
break
;
}
SfxViewFrame
::
Current
()
->
GetDispatcher
()
->
Execute
(
SID_ATTR_ZOOM
,
SFX_CALLMODE_ASYNCHRON
,
&
aZoom
,
0L
);
pCurrentShell
->
GetDispatcher
()
->
Execute
(
SID_ATTR_ZOOM
,
SFX_CALLMODE_ASYNCHRON
,
&
aZoom
,
0L
);
break
;
}
...
...
@@ -818,8 +822,11 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet)
case
SID_ZOOM_ENTIRE_PAGE
:
case
SID_ZOOM_PAGE_WIDTH
:
{
SfxObjectShell
*
pCurrentShell
=
SfxObjectShell
::
Current
();
const
SfxPoolItem
*
pItem
;
SfxItemState
aState
=
SfxViewFrame
::
Current
()
->
GetDispatcher
()
->
QueryState
(
SID_ATTR_ZOOM
,
pItem
);
SfxItemState
aState
=
pCurrentShell
?
pCurrentShell
->
GetDispatcher
()
->
QueryState
(
SID_ATTR_ZOOM
,
pItem
)
:
SFX_ITEM_DISABLED
;
if
(
aState
==
SFX_ITEM_DISABLED
)
rSet
.
DisableItem
(
nWhich
);
}
...
...
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