Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
19937b68
Commit
19937b68
authored
Jan 10, 2009
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed spelling correction popup when there is no extra dictionary
parent
c7429980
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/gui/value/text.cpp
src/gui/value/text.cpp
+2
-1
No files found.
src/gui/value/text.cpp
View file @
19937b68
...
...
@@ -519,10 +519,11 @@ String spellcheck_word_at(const String& str, size_t start) {
void
spellcheck_language_at
(
const
String
&
str
,
size_t
error_pos
,
SpellChecker
**
out
)
{
String
tag
=
tag_at
(
str
,
error_pos
);
size_t
pos
=
min
(
tag
.
find_first_of
(
_
(
':'
)),
tag
.
size
()
-
1
);
size_t
pos2
=
min
(
tag
.
find_first_of
(
_
(
':'
),
pos
+
1
),
tag
.
size
()
-
1
);
size_t
pos2
=
min
(
tag
.
find_first_of
(
_
(
':'
),
pos
+
1
),
tag
.
size
());
String
language
=
tag
.
substr
(
pos
+
1
,
pos2
-
pos
-
1
);
if
(
language
.
empty
())
return
;
out
[
0
]
=
&
SpellChecker
::
get
(
language
);
if
(
pos2
>=
tag
.
size
())
return
;
String
extra
=
tag
.
substr
(
pos2
+
1
);
if
(
extra
.
empty
())
return
;
out
[
1
]
=
&
SpellChecker
::
get
(
extra
,
language
);
...
...
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