Linux fixes.

This commit is contained in:
leo 2012-02-09 19:28:21 +00:00
parent d4a8dea6f7
commit 7930ff85ac
2 changed files with 3 additions and 1 deletions

View file

@ -168,7 +168,7 @@ void Project::UpdateInterface()
SystemUpdateSnap(m_nSnap);
SystemUpdateSnap(m_nMoveSnap, m_nAngleSnap);
SystemUpdateCameraMenu(m_pCameras);
SystemUpdateCurrentCamera(NULL, m_ActiveView->m_Camera, m_pCameras);
SystemUpdateCurrentCamera(NULL, m_ActiveView ? m_ActiveView->m_Camera : NULL, m_pCameras);
UpdateSelection();
if (m_bAnimation)
SystemUpdateTime(m_bAnimation, m_nCurFrame, m_nTotalFrames);

View file

@ -23,6 +23,7 @@
#include "lc_application.h"
#include "library.h"
#include "preview.h"
#include "camera.h"
View* view;
@ -598,6 +599,7 @@ int main (int argc, char* argv[])
}
view = new View (lcGetActiveProject(), NULL);
view->m_Camera = lcGetActiveProject()->GetCamera(LC_CAMERA_MAIN);
// main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (((GtkWidget*)(*main_window))), "LeoCAD");