//////////////////////////////////////////////////////////////// TEditorClient -------------
| 3474 | // ------------- |
| 3475 | // |
| 3476 | void TEditorClient::CmMiscLDDelete () |
| 3477 | { |
| 3478 | // Ignore if "insert object" mode |
| 3479 | if ( InsertingObject ) |
| 3480 | return; |
| 3481 | |
| 3482 | SET_HELP_CONTEXT(Delete_LineDefs_and_join_Sectors); |
| 3483 | |
| 3484 | // Check at least one object selected |
| 3485 | if ( CheckSelection (1, -1) == FALSE ) |
| 3486 | return; |
| 3487 | |
| 3488 | // UNDO |
| 3489 | StartUndoRecording("Delete LineDef"); |
| 3490 | |
| 3491 | // Delete LineDefs and join sectors |
| 3492 | DeleteLineDefsJoinSectors (&Selected); |
| 3493 | |
| 3494 | // UNDO |
| 3495 | StopUndoRecording(); |
| 3496 | |
| 3497 | // SELECTION MAY BE NOT VALID |
| 3498 | // Forget selection to prevent invalid object numbers |
| 3499 | ForgetSelection (&Selected); |
| 3500 | CurObject = -1; |
| 3501 | |
| 3502 | // Redraw map, info windows and status bar |
| 3503 | RefreshWindows(); |
| 3504 | |
| 3505 | RESTORE_HELP_CONTEXT(); |
| 3506 | } |
| 3507 | |
| 3508 | ///////////////////////////////////////////////////////////////////// |
| 3509 | // TEditorClient |
nothing calls this directly
no test coverage detected