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
9d0f8632
Kaydet (Commit)
9d0f8632
authored
Agu 15, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rework loops so to have exit condition on correct unsigned value
Change-Id: I91e647d6b1aebe8342f95c88fc81bd2c5a43ce71
üst
7d5f47af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
baside2.cxx
basctl/source/basicide/baside2.cxx
+5
-6
editsyntaxhighlighter.cxx
svtools/source/edit/editsyntaxhighlighter.cxx
+4
-3
No files found.
basctl/source/basicide/baside2.cxx
Dosyayı görüntüle @
9d0f8632
...
...
@@ -1113,19 +1113,18 @@ void ModulWindow::GetState( SfxItemSet &rSet )
TextView
*
pView
=
GetEditView
();
if
(
pView
)
{
OUString
sProcName
;
bool
bFound
=
false
;
TextSelection
aSel
=
pView
->
GetSelection
();
long
nLine
=
aSel
.
GetStart
().
GetPara
();
for
(
long
i
=
nLine
;
i
>=
0
&&
!
bFound
;
--
i
)
sal_uInt32
i
=
aSel
.
GetStart
().
GetPara
();
do
{
OUString
aCurrLine
=
GetEditEngine
()
->
GetText
(
i
);
OUString
sProcType
;
bFound
=
GetEditorWindow
().
GetProcedureName
(
aCurrLine
,
sProcType
,
sProcName
);
}
if
(
GetEditorWindow
().
GetProcedureName
(
aCurrLine
,
sProcType
,
sProcName
))
break
;
}
while
(
i
--
);
OUString
aTitle
=
CreateQualifiedName
();
if
(
!
sProcName
.
isEmpty
())
...
...
svtools/source/edit/editsyntaxhighlighter.cxx
Dosyayı görüntüle @
9d0f8632
...
...
@@ -43,7 +43,7 @@ void MultiLineEditSyntaxHighlight::DoBracketHilight(sal_uInt16 nKey)
{
TextSelection
aCurrentPos
=
GetTextView
()
->
GetSelection
();
sal_Int32
nStartPos
=
aCurrentPos
.
GetStart
().
GetIndex
();
sal_
Int32
nStartPara
=
aCurrentPos
.
GetStart
().
GetPara
();
const
sal_u
Int32
nStartPara
=
aCurrentPos
.
GetStart
().
GetPara
();
sal_uInt16
nCount
=
0
;
int
nChar
=
-
1
;
...
...
@@ -74,7 +74,8 @@ void MultiLineEditSyntaxHighlight::DoBracketHilight(sal_uInt16 nKey)
if
(
nChar
!=
-
1
)
{
for
(
sal_Int32
nPara
=
nStartPara
;
nPara
>=
0
;
--
nPara
)
sal_uInt32
nPara
=
nStartPara
;
do
{
if
(
nPara
==
nStartPara
&&
nStartPos
==
0
)
continue
;
...
...
@@ -102,7 +103,7 @@ void MultiLineEditSyntaxHighlight::DoBracketHilight(sal_uInt16 nKey)
if
(
aLine
[
i
]
==
nKey
)
++
nCount
;
}
}
}
while
(
nPara
--
);
}
}
...
...
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