From f5b3a24f42763bfb84c4c60132e0af7404c239df Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 4 Dec 2023 21:26:23 +0100 Subject: [PATCH] Omit vposition property when it's 0. This is already done for hposition. --- src/subtitle_asset_internal.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/subtitle_asset_internal.cc b/src/subtitle_asset_internal.cc index 484e75ac..5400b190 100644 --- a/src/subtitle_asset_internal.cc +++ b/src/subtitle_asset_internal.cc @@ -197,12 +197,6 @@ position_align (xmlpp::Element* e, order::Context& context, HAlign h_align, floa } else { e->set_attribute ("VPosition", raw_convert (v_position * 100, 6)); } - } else { - if (context.standard == Standard::SMPTE) { - e->set_attribute ("Vposition", "0"); - } else { - e->set_attribute ("VPosition", "0"); - } } if (fabs(z_position) > ALIGN_EPSILON && context.standard == Standard::SMPTE) { -- 2.30.2