[GME-commit] GMESRC/GME/Gme ScrollZoomView.cpp,1.10,1.11 GMEView.cpp,1.146,1.147

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Thu May 13 12:11:53 CDT 2004


Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv31924

Modified Files:
	ScrollZoomView.cpp GMEView.cpp 
Log Message:
pannwin craches the GME by AfxGetMainWnd

CVS User: bogyom

Index: ScrollZoomView.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/ScrollZoomView.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** ScrollZoomView.cpp	12 May 2004 19:38:41 -0000	1.10
--- ScrollZoomView.cpp	13 May 2004 16:11:50 -0000	1.11
***************
*** 380,384 ****
  void CScrollZoomView::notifyPanning(CPoint pt)
  {
! 	CMainFrame* main = (CMainFrame*)AfxGetMainWnd();
  
  	if (!main  ||  !main->m_pannWin.IsVisible())
--- 380,385 ----
  void CScrollZoomView::notifyPanning(CPoint pt)
  {
! //	CMainFrame* main = (CMainFrame*)AfxGetMainWnd();
! 	CMainFrame* main = (CMainFrame*)theApp.m_pMainWnd;
  
  	if (!main  ||  !main->m_pannWin.IsVisible())

Index: GMEView.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/GMEView.cpp,v
retrieving revision 1.146
retrieving revision 1.147
diff -C2 -d -r1.146 -r1.147
*** GMEView.cpp	12 May 2004 19:38:41 -0000	1.146
--- GMEView.cpp	13 May 2004 16:11:50 -0000	1.147
***************
*** 485,489 ****
  void CGMEView::DoPannWinRefresh()
  {
! 	CMainFrame* main = (CMainFrame*)AfxGetMainWnd();
  
  	if (!main  ||  !main->m_pannWin.IsVisible())
--- 485,490 ----
  void CGMEView::DoPannWinRefresh()
  {
! //	CMainFrame* main = (CMainFrame*)AfxGetMainWnd();
! 	CMainFrame* main = (CMainFrame*)theApp.m_pMainWnd;
  
  	if (!main  ||  !main->m_pannWin.IsVisible())



More information about the GME-commit mailing list