Merge remote-tracking branch 'krobelus/no-selection-history-in-draft-context'
This commit is contained in:
commit
938be7a7b0
|
@ -228,7 +228,7 @@ struct ScopedSelectionEdition
|
||||||
{
|
{
|
||||||
ScopedSelectionEdition(Context& context)
|
ScopedSelectionEdition(Context& context)
|
||||||
: m_context{context},
|
: m_context{context},
|
||||||
m_buffer{context.has_buffer() ? &context.buffer() : nullptr}
|
m_buffer{not (m_context.flags() & Context::Flags::Draft) and context.has_buffer() ? &context.buffer() : nullptr}
|
||||||
{ if (m_buffer) m_context.m_selection_history.begin_edition(); }
|
{ if (m_buffer) m_context.m_selection_history.begin_edition(); }
|
||||||
ScopedSelectionEdition(ScopedSelectionEdition&& other) : m_context{other.m_context}, m_buffer{other.m_buffer}
|
ScopedSelectionEdition(ScopedSelectionEdition&& other) : m_context{other.m_context}, m_buffer{other.m_buffer}
|
||||||
{ other.m_buffer = nullptr; }
|
{ other.m_buffer = nullptr; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user