Angles need to be reset when changing the current file too

Fri, 02 Aug 2013 16:39:46 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 02 Aug 2013 16:39:46 +0300
changeset 423
8516b8e14fb4
parent 422
00eedf400f72
child 424
3b9cd65c8f59

Angles need to be reset when changing the current file too

src/file.cpp file | annotate | diff | comparison | revisions
--- a/src/file.cpp	Fri Aug 02 16:36:38 2013 +0300
+++ b/src/file.cpp	Fri Aug 02 16:39:46 2013 +0300
@@ -972,11 +972,13 @@
 	m_curfile = f;
 	
 	if (g_win && f) {
+		// A ton of stuff needs to be updated
 		g_win->clearSelection();
 		g_win->updateFileListItem (f);
 		g_win->buildObjList();
 		g_win->updateTitle();
 		g_win->R()->setFile (f);
+		g_win->R()->resetAngles();
 		g_win->R()->repaint();
 		
 		log ("Changed file to %1", f->getShortName());

mercurial