Fixed a small glitch (Warning about open transaction at end of partial move)

This commit is contained in:
Matthias Koefferlein 2026-04-04 14:37:15 +02:00
parent a092d7c6ca
commit 57eb90df69
1 changed files with 1 additions and 7 deletions

View File

@ -2434,18 +2434,12 @@ PartialService::end_move (const db::DPoint & /*p*/, lay::angle_constraint_type /
if (m_current != m_start) {
if (manager ()) {
manager ()->transaction (tl::to_string (tr ("Partial move")));
}
db::Transaction transaction ((manager () && ! manager ()->transacting ()) ? manager () : 0, tl::to_string (tr ("Partial move")));
db::DTrans move_trans = db::DTrans (m_current - m_start);
transform_selection (move_trans);
if (manager ()) {
manager ()->commit ();
}
}
if (! m_keep_selection) {