Even more mouse control bugs fixed

This commit is contained in:
Mark Watkins 2011-06-09 14:19:45 +10:00
parent 0aead6321d
commit 4893c7fa40
3 changed files with 11 additions and 11 deletions

View File

@ -8304,7 +8304,7 @@
<sleeplib/machine.h> <sleeplib/machine.h>
<list> <list>
1307590941 /home/mark/projects/git/sleepyhead/src/version.h 1307593095 /home/mark/projects/git/sleepyhead/src/version.h
1307418393 /home/mark/projects/git/sleepyhead/src/libs/sleeplib/prs1_loader.h 1307418393 /home/mark/projects/git/sleepyhead/src/libs/sleeplib/prs1_loader.h
"machine.h" "machine.h"
@ -8341,7 +8341,7 @@
"sleeplib/profiles.h" "sleeplib/profiles.h"
"sleeplib/machine_loader.h" "sleeplib/machine_loader.h"
1307590711 source:/home/mark/projects/git/sleepyhead/src/graphs/graph.cpp 1307590941 source:/home/mark/projects/git/sleepyhead/src/graphs/graph.cpp
<wx/settings.h> <wx/settings.h>
<wx/dcbuffer.h> <wx/dcbuffer.h>
<wx/log.h> <wx/log.h>

View File

@ -527,11 +527,10 @@ void gGraphWindow::OnMouseLeftRelease(wxMouseEvent &event)
int x1=m_mouseRBrect.x; int x1=m_mouseRBrect.x;
int x2=x1+m_mouseRBrect.width; int x2=x1+m_mouseRBrect.width;
m_mouseLDown=false;
m_mouseRBrect=wxRect(0, 0, 0, 0); m_mouseRBrect=wxRect(0, 0, 0, 0);
if (hot1.Contains(x,y) && !m_drag_foobar) { if (m_mouseLDown && !m_drag_foobar) { //hot1.Contains(x,y) &&
int t1=MIN(x1,x2); int t1=MIN(x1,x2);
int t2=MAX(x1,x2); int t2=MAX(x1,x2);
@ -556,6 +555,7 @@ void gGraphWindow::OnMouseLeftRelease(wxMouseEvent &event)
} }
m_drag_foobar=false; m_drag_foobar=false;
m_mouseLDown=false;
event.Skip(); event.Skip();
} }

View File

@ -16,14 +16,14 @@ namespace AutoVersion{
//Standard Version Type //Standard Version Type
static const long MAJOR = 0; static const long MAJOR = 0;
static const long MINOR = 7; static const long MINOR = 7;
static const long BUILD = 3989; static const long BUILD = 3995;
static const long REVISION = 4935; static const long REVISION = 4967;
//Miscellaneous Version Types //Miscellaneous Version Types
static const long BUILDS_COUNT = 2169; static const long BUILDS_COUNT = 2183;
#define RC_FILEVERSION 0,7,3989,4935 #define RC_FILEVERSION 0,7,3995,4967
#define RC_FILEVERSION_STRING "0, 7, 3989, 4935\0" #define RC_FILEVERSION_STRING "0, 7, 3995, 4967\0"
static const char FULLVERSION_STRING[] = "0.7.3989.4935"; static const char FULLVERSION_STRING[] = "0.7.3995.4967";
//These values are to keep track of your versioning state, don't modify them. //These values are to keep track of your versioning state, don't modify them.
static const long BUILD_HISTORY = 0; static const long BUILD_HISTORY = 0;