]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiGraphics.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiGraphics.cpp
index 2fcb79867103e6eab8e9fd30ece273f25e33df25..e89bd4cfe6467e0e050ea0d0c88df64609a2b07a 100644 (file)
@@ -481,7 +481,7 @@ void GuiGraphics::paramsToDialog(InsetGraphicsParams const & igp)
        rtXunit->clear();
        rtYunit->clear();
        
-       for (int i = 0; i < bb_size; i++) {
+       for (size_t i = 0; i < bb_size; i++) {
                lbXunit->addItem(qt_(bb_units_gui[i]),
                        toqstr(bb_units[i]));
                lbYunit->addItem(qt_(bb_units_gui[i]),
@@ -626,7 +626,7 @@ void GuiGraphics::paramsToDialog(InsetGraphicsParams const & igp)
 
        origin->clear();
 
-       for (int i = 0; i < rorigin_size; i++) {
+       for (size_t i = 0; i < rorigin_size; i++) {
                origin->addItem(qt_(rorigin_gui_strs[i]),
                        toqstr(rorigin_lyx_strs[i]));
        }
@@ -638,6 +638,8 @@ void GuiGraphics::paramsToDialog(InsetGraphicsParams const & igp)
 
        // latex section
        latexoptions->setText(toqstr(igp.special));
+       // cf bug #3852
+       filename->setFocus();
 }