Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
6cdad2a2
Commit
6cdad2a2
authored
Jan 01, 2011
by
Colin Myers
Committed by
Marcus D. Hanwell
Jan 24, 2011
Browse files
Fixed reading of int values. Tulip format requires the values to be in quotes.
Change-Id: I58bcd7f5c19a376c8a0c1fcc28ffa039a6025d9c
parent
9af3345e
Changes
1
Show whitespace changes
Inline
Side-by-side
Infovis/vtkTulipReader.cxx
View file @
6cdad2a2
...
...
@@ -316,8 +316,12 @@ int vtkTulipReader::RequestData(
tok
.
Type
==
vtkTulipReaderToken
::
INT
);
int
id
=
tok
.
IntValue
;
vtkTulipReaderNextToken
(
fin
,
tok
);
assert
(
tok
.
Type
==
vtkTulipReaderToken
::
INT
);
int
value
=
tok
.
IntValue
;
assert
(
tok
.
Type
==
vtkTulipReaderToken
::
TEXT
);
vtksys_ios
::
stringstream
ss
;
int
value
;
ss
<<
tok
.
StringValue
;
ss
>>
value
;
assert
(
!
ss
.
fail
());
vtkTulipReaderNextToken
(
fin
,
tok
);
assert
(
tok
.
Type
==
vtkTulipReaderToken
::
CLOSE_PAREN
);
vtkTulipReaderNextToken
(
fin
,
tok
);
...
...
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