]> git.lyx.org Git - lyx.git/blobdiff - src/LyXView.C
forgot two files
[lyx.git] / src / LyXView.C
index b1d60e9371886b3b24156dcef40a06191b216b03..462e53d9ffa820028a8d7e24473b099c846d4f5f 100644 (file)
@@ -38,7 +38,7 @@ extern FD_form_document * fd_form_document;
 extern void AutoSave();
 extern char updatetimer;
 extern void QuitLyX();
-int current_layout = 0;
+LyXTextClass::size_type current_layout = 0;
 
 // This is very temporary
 BufferView * current_view;
@@ -306,7 +306,7 @@ void LyXView::updateLayoutChoice()
        // we need to do this.
        toolbar->combox->Redraw();
 
-       char layout = bufferview->text->cursor.par->GetLayout();
+       LyXTextClass::size_type layout = bufferview->text->cursor.par->GetLayout();
 
        if (layout != current_layout){
                toolbar->combox->select(layout + 1);