forked from mia/Aegisub
Made selecting a line via the visual typesetting drag mode also update the grid's selection, fixing one way of getting the edit box out of sync with the other non-time controls.
Originally committed to SVN as r3106.
This commit is contained in:
parent
43adde723c
commit
fa3f5d11ef
1 changed files with 4 additions and 1 deletions
|
@ -160,7 +160,10 @@ void VisualTool::OnMouseEvent (wxMouseEvent &event) {
|
||||||
if (curFeature != -1) {
|
if (curFeature != -1) {
|
||||||
// Initialize drag
|
// Initialize drag
|
||||||
InitializeDrag(features[curFeature]);
|
InitializeDrag(features[curFeature]);
|
||||||
if (features[curFeature].lineN != -1) VideoContext::Get()->grid->editBox->SetToLine(features[curFeature].lineN,true);
|
if (features[curFeature].lineN != -1) {
|
||||||
|
VideoContext::Get()->grid->editBox->SetToLine(features[curFeature].lineN,true);
|
||||||
|
VideoContext::Get()->grid->SelectRow(features[curFeature].lineN);
|
||||||
|
}
|
||||||
|
|
||||||
// Set start value
|
// Set start value
|
||||||
dragStartX = mx;
|
dragStartX = mx;
|
||||||
|
|
Loading…
Reference in a new issue