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
aa116a17
Kaydet (Commit)
aa116a17
authored
Agu 04, 2018
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid getTokenCount/getToken to get last token
Change-Id: I19de49e64746a6632c56c0ddb0a0c455c97be414
üst
f13a7100
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
appopen.cxx
sfx2/source/appl/appopen.cxx
+2
-3
No files found.
sfx2/source/appl/appopen.cxx
Dosyayı görüntüle @
aa116a17
...
...
@@ -43,7 +43,6 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
#include <comphelper/synchronousdispatch.hxx>
#include <vcl/wrkwin.hxx>
...
...
@@ -609,8 +608,8 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
else
if
(
nSID
==
SID_OPENTEMPLATE
)
{
aPath
=
SvtPathOptions
().
GetTemplatePath
();
sal_Int32
nTokenCount
=
comphelper
::
string
::
getTokenCount
(
aPath
,
';'
);
aPath
=
aPath
.
getToken
(
nTokenCount
?
(
nTokenCount
-
1
)
:
0
,
';'
);
if
(
!
aPath
.
isEmpty
())
// if not empty then get last token
aPath
=
aPath
.
copy
(
aPath
.
lastIndexOf
(
';'
)
+
1
);
// lastIndexOf+copy works whether separator (';') is there or not
}
sal_Int16
nDialog
=
SFX2_IMPL_DIALOG_CONFIG
;
...
...
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