add missing xml closers, add fix for folder bug, add roundoff fixups
[goodguy/history.git] / cinelerra-5.1 / plugins / titler / titlewindow.C
index 17178fc36dd5f271be8a80ec08c4287a14dcd070..698edb26575146c2e01e5ec4336f537d39f4c0b0 100644 (file)
@@ -239,6 +239,7 @@ void TitleWindow::create_objects()
        pitch = new TitlePitch(client, this, x1, y2+10, &client->config.line_pitch);
        pitch->create_objects();
        x = x2 + size_tumbler->get_w() + margin;
+       int y3 = pitch->get_y() + pitch->get_h();
 
        add_tool(style_title = new BC_Title(x, y, _("Style:")));
        add_tool(italic = new TitleItalic(client, this, x, y + 20));
@@ -263,8 +264,8 @@ void TitleWindow::create_objects()
        add_tool(mid = new TitleMid(client, this, x, y + 50));
        add_tool(bottom= new TitleBottom(client, this, x, y + 80));
 
-       y += 50;
        x = 10;
+       y = y3;
 
        add_tool(x_title = new BC_Title(x, y, _("X:")));
        title_x = new TitleX(client, this, x, y + 20);
@@ -385,9 +386,9 @@ int TitleWindow::resize_event(int w, int h)
 #endif
        size_title->reposition_window(size_title->get_x(), size_title->get_y());
        size->reposition_window(size->get_x(), size->get_y());
-       size_tumbler->reposition_window(size_title->get_x(), size_title->get_y());
+       size_tumbler->reposition_window(size_tumbler->get_x(), size_tumbler->get_y());
        pitch_title->reposition_window(pitch_title->get_x(), pitch_title->get_y());
-       pitch->reposition_window(size->get_x(), size->get_y());
+       pitch->reposition_window(pitch->get_x(), pitch->get_y());
 
 #ifndef X_HAVE_UTF8_STRING
        encoding->reposition_window(encoding->get_x(), encoding->get_y());