Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
vite
Commits
5ac10cdd
Commit
5ac10cdd
authored
Jan 31, 2010
by
Olivier Lagrasse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix bug when user zoom - close - load a trace. (position of container texts)
parent
cf0afca0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
3 deletions
+36
-3
src/common/info.cpp
src/common/info.cpp
+17
-0
src/common/info.hpp
src/common/info.hpp
+5
-1
src/core/Core.cpp
src/core/Core.cpp
+4
-0
src/render/Render_opengl.cpp
src/render/Render_opengl.cpp
+10
-2
No files found.
src/common/info.cpp
View file @
5ac10cdd
...
...
@@ -74,3 +74,20 @@ Element_pos Info::Render::_info_accurate = 0.0;
bool
Info
::
Render
::
_no_arrows
=
false
;
bool
Info
::
Render
::
_no_events
=
false
;
void
Info
::
release_all
(){
Info
::
Container
::
x_min
=
0
;
Info
::
Container
::
x_max
=
0
;
Info
::
Container
::
y_min
=
0
;
Info
::
Container
::
y_max
=
0
;
Info
::
Entity
::
x_min
=
0
;
Info
::
Entity
::
x_max
=
0
;
Info
::
Entity
::
y_min
=
0
;
Info
::
Entity
::
y_max
=
0
;
Info
::
Render
::
_x_min_visible
=
0.0
;
Info
::
Render
::
_x_max_visible
=
0.0
;
}
src/common/info.hpp
View file @
5ac10cdd
...
...
@@ -72,7 +72,11 @@ public:
*/
virtual
~
Info
();
/*!
* \brief Release all Info class attributes.
*/
static
void
release_all
();
/*!
* \brief Sub structure to store screen information.
*/
...
...
src/core/Core.cpp
View file @
5ac10cdd
...
...
@@ -749,6 +749,10 @@ void Core::launch_action(int state, void* arg) {
_render_opengl
->
updateGL
();
/* Release all data */
Info
::
release_all
();
break
;
...
...
src/render/Render_opengl.cpp
View file @
5ac10cdd
...
...
@@ -454,18 +454,26 @@ bool Render_opengl::unbuild(){
_wait_angle
=
0.0
f
;
/* begin with 0 rad angle */
/* init measurement attributes */
Info
::
Container
::
x_max
=
0
;
/*
Info::Container::x_max = 0;
Info::Container::y_max = 0;
Info::Container::x_min = 0;
Info::Container::y_min = 0;
Info::Entity::x_max = 0;
Info
::
Entity
::
x_min
=
0
;
Info::Entity::x_min = 0;
*/
// _state_x_max = 0;
_state_y_max
=
0
;
// _state_x_min = 0;
_state_y_min
=
0
;
/* TODO: call method which release Geometry attribute values */
_x_state_scale
=
1
;
/* for states scaling */
_x_state_translate
=
0
;
/* for states translation */
_y_state_scale
=
1
;
/* for states scaling */
_y_state_translate
=
0
;
/* for states translation */
_x_scroll_pos
=
0
;
/* horizontal bar placed on 0 */
_y_scroll_pos
=
0
;
/* clear lists to store container texts */
_text_pos
.
clear
();
_text_value
.
clear
();
...
...
Write
Preview
Markdown
is supported
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