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
4d9d727a
Kaydet (Commit)
4d9d727a
authored
May 11, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#736864 Dereference before null check
Change-Id: Ia26b4b391de088487e30a2767660ade6c147eeb4
üst
85834e2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
view.cxx
sw/source/core/uibase/uiview/view.cxx
+4
-4
No files found.
sw/source/core/uibase/uiview/view.cxx
Dosyayı görüntüle @
4d9d727a
...
@@ -748,6 +748,7 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
...
@@ -748,6 +748,7 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
m_aTimer
.
SetTimeout
(
120
);
m_aTimer
.
SetTimeout
(
120
);
SwDocShell
*
pDocSh
=
PTR_CAST
(
SwDocShell
,
_pFrame
->
GetObjectShell
()
);
SwDocShell
*
pDocSh
=
PTR_CAST
(
SwDocShell
,
_pFrame
->
GetObjectShell
()
);
OSL_ENSURE
(
pDocSh
,
"view without DocShell."
);
bool
bOldModifyFlag
=
pDocSh
->
IsEnableSetModified
();
bool
bOldModifyFlag
=
pDocSh
->
IsEnableSetModified
();
if
(
bOldModifyFlag
)
if
(
bOldModifyFlag
)
pDocSh
->
EnableSetModified
(
false
);
pDocSh
->
EnableSetModified
(
false
);
...
@@ -757,10 +758,9 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
...
@@ -757,10 +758,9 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
// manually.
// manually.
if
(
pDocSh
->
GetDoc
()
->
get
(
IDocumentSettingAccess
::
EMBED_FONTS
))
if
(
pDocSh
->
GetDoc
()
->
get
(
IDocumentSettingAccess
::
EMBED_FONTS
))
pDocSh
->
UpdateFontList
();
pDocSh
->
UpdateFontList
();
OSL_ENSURE
(
pDocSh
,
"view without DocShell."
);
bool
bWebDShell
=
pDocSh
->
ISA
(
SwWebDocShell
);
SwWebDocShell
*
pWebDShell
=
PTR_CAST
(
SwWebDocShell
,
pDocSh
);
const
SwMasterUsrPref
*
pUsrPref
=
SW_MOD
()
->
GetUsrPref
(
0
!=
p
WebDShell
);
const
SwMasterUsrPref
*
pUsrPref
=
SW_MOD
()
->
GetUsrPref
(
b
WebDShell
);
SwViewOption
aUsrPref
(
*
pUsrPref
);
SwViewOption
aUsrPref
(
*
pUsrPref
);
//! get lingu options without loading lingu DLL
//! get lingu options without loading lingu DLL
...
@@ -804,7 +804,7 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
...
@@ -804,7 +804,7 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
{
{
SwDoc
&
rDoc
=
*
((
SwDocShell
*
)
pDocSh
)
->
GetDoc
();
SwDoc
&
rDoc
=
*
((
SwDocShell
*
)
pDocSh
)
->
GetDoc
();
if
(
!
bOldShellWasSrcView
&&
p
WebDShell
&&
!
m_bOldShellWasPagePreview
)
if
(
!
bOldShellWasSrcView
&&
b
WebDShell
&&
!
m_bOldShellWasPagePreview
)
aUsrPref
.
setBrowseMode
(
true
);
aUsrPref
.
setBrowseMode
(
true
);
else
else
aUsrPref
.
setBrowseMode
(
rDoc
.
get
(
IDocumentSettingAccess
::
BROWSE_MODE
)
);
aUsrPref
.
setBrowseMode
(
rDoc
.
get
(
IDocumentSettingAccess
::
BROWSE_MODE
)
);
...
...
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