//////////////////////////////////////////////////////////////// TEditorClient -------------
| 3401 | // ------------- |
| 3402 | // |
| 3403 | void TEditorClient::CmMiscLDSplitAdd () |
| 3404 | { |
| 3405 | // Ignore if "insert object" mode |
| 3406 | if ( InsertingObject ) |
| 3407 | return; |
| 3408 | |
| 3409 | SET_HELP_CONTEXT(Split_LineDef_and_Add_new_Vertex); |
| 3410 | |
| 3411 | // Check at least one object selected |
| 3412 | if ( CheckSelection (1, -1) == FALSE ) |
| 3413 | goto End; |
| 3414 | |
| 3415 | // UNDO |
| 3416 | StartUndoRecording("Split LineDef"); |
| 3417 | |
| 3418 | // Split LineDef and add a vertex |
| 3419 | SplitLineDefs (Selected); |
| 3420 | |
| 3421 | // UNDO |
| 3422 | StopUndoRecording(); |
| 3423 | |
| 3424 | // SELECTION IS STILL VALID |
| 3425 | // Restore selection |
| 3426 | SetupSelection (FALSE); |
| 3427 | |
| 3428 | // Redraw map, info windows and status bar |
| 3429 | RefreshWindows(); |
| 3430 | End: |
| 3431 | RESTORE_HELP_CONTEXT(); |
| 3432 | } |
| 3433 | |
| 3434 | |
| 3435 | ///////////////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected