Skip to content

Commit

Permalink
bin/gui/hexview.rb,bin/gui/treeview.rb: Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
darko committed Nov 3, 2011
1 parent 72333b8 commit 2ed0e4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions bin/gui/hexview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ def load(object)
case object
when Origami::Stream
@view.set_data(object.data)
when Origami::HexaString
@view.set_data(object.data.to_s)
when Origami::ByteString
@view.set_data(object.data.to_s)
when Origami::String
@view.set_data(object.value)
end

@current_obj = object
Expand Down
2 changes: 1 addition & 1 deletion bin/gui/treeview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def load_object(container, object, name = nil)
name =
case object
when Origami::String
'"' + object.value + '"'
'"' + object.to_utf8 + '"'
when Origami::Number, Name
object.value.to_s
else
Expand Down

0 comments on commit 2ed0e4d

Please sign in to comment.