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
13fdf04f
Kaydet (Commit)
13fdf04f
authored
Eyl 10, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1323757 Dereference before null check
Change-Id: I5353b78b6961d28fb3f42e5f2073e9a83ac1037c
üst
a9373197
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
unomod.cxx
sw/source/uibase/uno/unomod.cxx
+22
-16
No files found.
sw/source/uibase/uno/unomod.cxx
Dosyayı görüntüle @
13fdf04f
...
...
@@ -707,33 +707,39 @@ void SwXViewSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo, c
break
;
case
HANDLE_VIEWSET_ONLINE_LAYOUT
:
{
SwViewOption
aOpt
(
*
pView
->
GetWrtShell
().
GetViewOptions
());
if
(
pView
&&
!
bVal
!=
!
aOpt
.
getBrowseMode
())
if
(
pView
)
{
aOpt
.
setBrowseMode
(
bVal
);
pView
->
GetWrtShell
().
ApplyViewOptions
(
aOpt
);
SwViewOption
aOpt
(
*
pView
->
GetWrtShell
().
GetViewOptions
());
if
(
!
bVal
!=
!
aOpt
.
getBrowseMode
())
{
aOpt
.
setBrowseMode
(
bVal
);
pView
->
GetWrtShell
().
ApplyViewOptions
(
aOpt
);
// must be set in mpViewOption as this will overwrite settings in _post!
if
(
mpViewOption
)
mpViewOption
->
setBrowseMode
(
bVal
);
// must be set in mpViewOption as this will overwrite settings in _post!
if
(
mpViewOption
)
mpViewOption
->
setBrowseMode
(
bVal
);
pView
->
GetDocShell
()
->
ToggleLayoutMode
(
pView
);
pView
->
GetDocShell
()
->
ToggleLayoutMode
(
pView
);
}
}
}
break
;
case
HANDLE_VIEWSET_HIDE_WHITESPACE
:
{
SwViewOption
aOpt
(
*
pView
->
GetWrtShell
().
GetViewOptions
());
if
(
pView
&&
!
bVal
!=
!
aOpt
.
IsHideWhitespaceMode
())
if
(
pView
)
{
aOpt
.
SetHideWhitespaceMode
(
bVal
);
pView
->
GetWrtShell
().
ApplyViewOptions
(
aOpt
);
SwViewOption
aOpt
(
*
pView
->
GetWrtShell
().
GetViewOptions
());
if
(
!
bVal
!=
!
aOpt
.
IsHideWhitespaceMode
())
{
aOpt
.
SetHideWhitespaceMode
(
bVal
);
pView
->
GetWrtShell
().
ApplyViewOptions
(
aOpt
);
// must be set in mpViewOption as this will overwrite settings in _post!
if
(
mpViewOption
)
mpViewOption
->
SetHideWhitespaceMode
(
bVal
);
// must be set in mpViewOption as this will overwrite settings in _post!
if
(
mpViewOption
)
mpViewOption
->
SetHideWhitespaceMode
(
bVal
);
pView
->
GetDocShell
()
->
ToggleLayoutMode
(
pView
);
pView
->
GetDocShell
()
->
ToggleLayoutMode
(
pView
);
}
}
}
break
;
...
...
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