]> git.lyx.org Git - lyx.git/commitdiff
* Application.C (Application): initialize correctly current_view_.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 18 Dec 2006 15:21:43 +0000 (15:21 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 18 Dec 2006 15:21:43 +0000 (15:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16322 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/Application.C

index a1dbae1b6d29b5c46d669816ba3198171c1c5c79..4483deced3e1a2157eb5c962c4c60bfbdbbbb278 100644 (file)
@@ -39,6 +39,7 @@ namespace frontend {
 
 
 Application::Application(int &, char **)
+       : current_view_(0)
 {
        // FIXME: please confirm: with unicode, I think initEncoding()
        // is not needed anymore!
@@ -49,11 +50,11 @@ Application::Application(int &, char **)
 
 
 LyXView & Application::createView(unsigned int width,
-                                                                 unsigned int height,
-                                                                 int posx, int posy,
-                                                                 bool maximize,
-                                                                 unsigned int iconSizeXY,
-                                                                 const std::string & geometryArg)
+                                 unsigned int height,
+                                 int posx, int posy,
+                                 bool maximize,
+                                 unsigned int iconSizeXY,
+                                 const std::string & geometryArg)
 {
        LyXView & view = gui().createRegisteredView();
        int view_id = view.id();