X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blobdiff_plain;f=src%2Flayout.cc;h=f955399dc8a1ace8ee207389d39022ec7998cc77;hp=c478a79cc4a41a46ee6b9660b4132f8b96e0ea56;hb=8c8de657d610f3ce471d9f18596a18001a425809;hpb=2a3aaf4f1667460a05566e5da09c4f77a8f2dbcd diff --git a/src/layout.cc b/src/layout.cc index c478a79c..f955399d 100644 --- a/src/layout.cc +++ b/src/layout.cc @@ -24,6 +24,7 @@ #include #include +#include #include #include @@ -1915,11 +1916,7 @@ static void layout_grid_setup(LayoutWindow *lw) if (!layout_location_vertical(static_cast(priority_location))) { - GtkWidget *tmp; - - tmp = v; - v = h; - h = tmp; + std::swap(v, h); } gq_gtk_box_pack_start(GTK_BOX(lw->group_box), v, TRUE, TRUE, 0);