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:
Thomas Goyne 2009-07-12 05:30:01 +00:00
parent 43adde723c
commit fa3f5d11ef
1 changed files with 4 additions and 1 deletions

View File

@ -160,7 +160,10 @@ void VisualTool::OnMouseEvent (wxMouseEvent &event) {
if (curFeature != -1) {
// Initialize drag
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
dragStartX = mx;