Mentions légales du service

Skip to content
Snippets Groups Projects
Commit bacf5e14 authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

Fix displaying variable values on vertical line

parent 7b5a0111
No related branches found
No related tags found
1 merge request!20Fix displaying variable values on vertical line
...@@ -393,8 +393,6 @@ void Hook_event::mouseReleaseEvent(QMouseEvent * event){ ...@@ -393,8 +393,6 @@ void Hook_event::mouseReleaseEvent(QMouseEvent * event){
&& ((_new_mouse_y-_mouse_y) < _minimum_distance_for_selection)){/* selection is too thin to draw a box. So, it must be a user click to display entity information */ && ((_new_mouse_y-_mouse_y) < _minimum_distance_for_selection)){/* selection is too thin to draw a box. So, it must be a user click to display entity information */
//start the timer to catch a click or double click //start the timer to catch a click or double click
_timer->start(getTimeClick()); _timer->start(getTimeClick());
double d =render_to_trace_x( screen_to_render_x(_mouse_x));
_core->launch_action(_core->_STATE_UPDATE_VARVALUES, &d);//update the value of the variables to display
_mouse_pressed = false; _mouse_pressed = false;
_mouse_pressed_inside_container = false; _mouse_pressed_inside_container = false;
......
...@@ -1163,8 +1163,11 @@ void Render_opengl::update_vertical_line(){ ...@@ -1163,8 +1163,11 @@ void Render_opengl::update_vertical_line(){
if (_mouse_pressed_inside_container) if (_mouse_pressed_inside_container)
set_vertical_line(0); set_vertical_line(0);
else else {
set_vertical_line(render_to_trace_x( screen_to_render_x(_mouse_x))); set_vertical_line(render_to_trace_x( screen_to_render_x(_mouse_x)));
Element_pos d = render_to_trace_x( screen_to_render_x(_mouse_x));
_core->launch_action(_core->_STATE_UPDATE_VARVALUES, &d);//update the value of the variables to display
}
updateGL(); updateGL();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment