Skip to content

Commit

Permalink
wxGUI/image2target: fix showing Ground Control Points settings dialog (
Browse files Browse the repository at this point in the history
…#3189)

Remove vertical sizer Add() method flags parameter argument
wx.ALIGN_CENTER_VERTICAL flag. Only horizontal alignment flags can be
used in vertical sizers.
  • Loading branch information
tmszi committed Sep 26, 2023
1 parent efbd716 commit 32bf7e5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions gui/wxpython/image2target/ii2t_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3126,13 +3126,13 @@ def __CreateSymbologyPage(self, notebook):
parent=panel, id=wx.ID_ANY, label=_("Select source map to display:")
),
proportion=0,
flag=wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
flag=wx.ALIGN_LEFT | wx.ALL,
border=5,
)
sizer.Add(
self.srcselection,
proportion=0,
flag=wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
flag=wx.ALIGN_LEFT | wx.ALL,
border=5,
)
self.srcselection.SetValue(src_map)
Expand All @@ -3143,13 +3143,13 @@ def __CreateSymbologyPage(self, notebook):
label=_("Select target raster map to display:"),
),
proportion=0,
flag=wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
flag=wx.ALIGN_LEFT | wx.ALL,
border=5,
)
sizer.Add(
self.tgtrastselection,
proportion=0,
flag=wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
flag=wx.ALIGN_LEFT | wx.ALL,
border=5,
)
self.tgtrastselection.SetValue(tgt_map["raster"])
Expand All @@ -3160,13 +3160,13 @@ def __CreateSymbologyPage(self, notebook):
label=_("Select target vector map to display:"),
),
proportion=0,
flag=wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
flag=wx.ALIGN_LEFT | wx.ALL,
border=5,
)
sizer.Add(
self.tgtvectselection,
proportion=0,
flag=wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
flag=wx.ALIGN_LEFT | wx.ALL,
border=5,
)
self.tgtvectselection.SetValue(tgt_map["vector"])
Expand Down Expand Up @@ -3232,15 +3232,15 @@ def __CreateRectificationPage(self, notebook):
parent=panel, id=wx.ID_ANY, label=_("Extension for output maps:")
),
proportion=0,
flag=wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
flag=wx.ALIGN_LEFT | wx.ALL,
border=5,
)
self.ext_txt = TextCtrl(parent=panel, id=wx.ID_ANY, value="", size=(350, -1))
self.ext_txt.SetValue(self.parent.extension)
sizer.Add(
self.ext_txt,
proportion=0,
flag=wx.ALIGN_LEFT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
flag=wx.ALIGN_LEFT | wx.ALL,
border=5,
)

Expand Down

0 comments on commit 32bf7e5

Please sign in to comment.