| 50 | } |
| 51 | |
| 52 | void mitk::UndoRedoPreferenceHelper::StoreLimit(int limit) |
| 53 | { |
| 54 | auto* prefs = GetPreferences(); |
| 55 | if (prefs == nullptr) |
| 56 | return; |
| 57 | |
| 58 | prefs->PutInt(UNDO_LIMIT_KEY, limit); |
| 59 | |
| 60 | if (limit > 0) |
| 61 | prefs->PutInt(LAST_UNDO_LIMIT_KEY, limit); |
| 62 | } |
nothing calls this directly
no test coverage detected