aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPeti Gomori <[email protected]>2012-06-13 15:53:23 +0200
committerHenrik Nord <[email protected]>2012-06-15 08:55:31 +0200
commit12db9a2c150edd41bafaf58b119ee88fe75b8814 (patch)
tree0d5babea7757dc5e95a687a230b0a9afdd14ee1b /lib
parent67d2e30e77db74d0852421c21362d1a9374780e1 (diff)
downloadotp-12db9a2c150edd41bafaf58b119ee88fe75b8814.tar.gz
otp-12db9a2c150edd41bafaf58b119ee88fe75b8814.tar.bz2
otp-12db9a2c150edd41bafaf58b119ee88fe75b8814.zip
Fix Table Viewer crash after a 'Found' -> 'Not found' search sequence
Start position was lost after a 'Found' -> 'Not found' search sequence leading an undefined position in the next search
Diffstat (limited to 'lib')
-rw-r--r--lib/observer/src/observer_tv_table.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/observer/src/observer_tv_table.erl b/lib/observer/src/observer_tv_table.erl
index 3930f9ee26..d339a853cb 100644
--- a/lib/observer/src/observer_tv_table.erl
+++ b/lib/observer/src/observer_tv_table.erl
@@ -321,7 +321,7 @@ handle_event(#wx{id=?SEARCH_ENTRY, event=#wxCommand{type=command_text_enter,cmdS
wxStatusBar:setStatusText(SB, "Not found"),
Pid ! {mark_search_hit, Find#find.start},
wxListCtrl:refreshItem(Grid, Find#find.start),
- {noreply, State#state{search=Search#search{find=#find{found=false}}}};
+ {noreply, State#state{search=Search#search{find=Find#find{found=false}}}};
Row ->
wxListCtrl:ensureVisible(Grid, Row),
wxListCtrl:refreshItem(Grid, Row),