Skip to content
Extraits de code Groupes Projets
Valider a4e8499e rédigé par Thomas Goyne's avatar Thomas Goyne
Parcourir les fichiers

Preserve the detached video dialog size when changing tools

The relayout to handle the changed subtoolbar size was fitting the
dialog to the size of the video, which was rather undesirable.
parent ae3b188d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -414,7 +414,13 @@ void VideoDisplay::SetTool(std::unique_ptr<VisualToolBase> new_tool) { ...@@ -414,7 +414,13 @@ void VideoDisplay::SetTool(std::unique_ptr<VisualToolBase> new_tool) {
tool->SetToolbar(toolBar); tool->SetToolbar(toolBar);
// Update size as the new typesetting tool may have changed the subtoolbar size // Update size as the new typesetting tool may have changed the subtoolbar size
if (!freeSize)
UpdateSize(); UpdateSize();
else {
// UpdateSize fits the window to the video, which we don't want to do
GetGrandParent()->Layout();
tool->SetDisplayArea(viewport_left, viewport_top, viewport_width, viewport_height);
}
} }
bool VideoDisplay::ToolIsType(std::type_info const& type) const { bool VideoDisplay::ToolIsType(std::type_info const& type) const {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter