aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_tv_table.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-05-26 14:31:53 +0200
committerDan Gudmundsson <[email protected]>2014-05-26 14:31:53 +0200
commit6731d295915448e4c219f1db1b146264ced68018 (patch)
treeb3e1e540b25295420be63bb2052495a97b4a1dbf /lib/observer/src/observer_tv_table.erl
parentce2ea545b8833b8e31322cdcff82f14a9cad8ba8 (diff)
parenta9f3e2531be76b37c5ce13d20300d71fad0a7230 (diff)
downloadotp-6731d295915448e4c219f1db1b146264ced68018.tar.gz
otp-6731d295915448e4c219f1db1b146264ced68018.tar.bz2
otp-6731d295915448e4c219f1db1b146264ced68018.zip
Merge branch 'dgud/observer/tests/OTP-11949' into maint
* dgud/observer/tests/OTP-11949: observer: Let wx create statusbar observer: Destroy the wx env observer: Fix range check Test Tweaks Enable tests
Diffstat (limited to 'lib/observer/src/observer_tv_table.erl')
-rw-r--r--lib/observer/src/observer_tv_table.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/observer/src/observer_tv_table.erl b/lib/observer/src/observer_tv_table.erl
index 59fe5b5670..7757dfea53 100644
--- a/lib/observer/src/observer_tv_table.erl
+++ b/lib/observer/src/observer_tv_table.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2011-2013. All Rights Reserved.
+%% Copyright Ericsson AB 2011-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -409,7 +409,7 @@ handle_info({refresh, Min, Min}, State = #state{grid=Grid}) ->
wxListCtrl:refreshItem(Grid, Min), %% Avoid assert in wx below if Max is 0
{noreply, State};
handle_info({refresh, Min, Max}, State = #state{grid=Grid}) ->
- wxListCtrl:refreshItems(Grid, Min, Max),
+ Max > 0 andalso wxListCtrl:refreshItems(Grid, Min, Max),
{noreply, State};
handle_info(refresh_interval, State = #state{pid=Pid}) ->