Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vcsn
Vaucanson 1
Commits
0df966d4
Commit
0df966d4
authored
Aug 10, 2009
by
Florent D'Halluin
Browse files
[yavgui] Catch exceptions when creating transitions.
* yavgui/src/g_vcsn_handler_internal.hxx: Do that.
parent
9dbd9bd1
Changes
2
Show whitespace changes
Inline
Side-by-side
ChangeLog
View file @
0df966d4
2009-08-10 d-halluin <d-halluin@lrde.epita.fr>
[yavgui] Catch exceptions when creating transitions.
* yavgui/src/g_vcsn_handler_internal.hxx: Do that.
2009-08-10 d-halluin <d-halluin@lrde.epita.fr>
[yavgui] Improve transition creation.
...
...
yavgui/src/g_vcsn_handler_internal.hxx
View file @
0df966d4
...
...
@@ -236,6 +236,12 @@ namespace gui
{
using
namespace
vcsn
::
boolean_automaton
;
std
::
stringstream
str
;
htransition_t
i
;
try
{
// FIXME: Only for labels_are_series.
series_set_t
s
=
automaton
.
series
();
series_set_elt_t
se
=
make_rat_exp
(
s
.
monoid
().
alphabet
(),
...
...
@@ -243,11 +249,17 @@ namespace gui
*
(
s
.
monoid
().
representation
()),
*
(
s
.
representation
()));
htransition_t
i
=
automaton
.
add_series_transition
(
src
->
index
(),
i
=
automaton
.
add_series_transition
(
src
->
index
(),
dst
->
index
(),
se
);
}
catch
(
std
::
exception
&
e
)
{
QMessageBox
::
critical
(
NULL
,
"Exception occured"
,
e
.
what
());
return
;
}
std
::
stringstream
str
;
str
<<
automaton
.
series_of
(
i
);
GTransition
*
t
=
new
GTransition
(
i
,
*
src
,
*
dst
,
...
...
Write
Preview
Supports
Markdown
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