Commit 882fe7e9 authored by Jan Hambrecht's avatar Jan Hambrecht
Browse files

fix repainting of parameter shapes when they get changed


svn path=/trunk/koffice/; revision=601640
parent baec8c4f
...@@ -38,6 +38,8 @@ void KoParameterShape::moveHandle( int handleId, const QPointF & point, Qt::Keyb ...@@ -38,6 +38,8 @@ void KoParameterShape::moveHandle( int handleId, const QPointF & point, Qt::Keyb
qWarning() << "handleId out of bounds"; qWarning() << "handleId out of bounds";
return; return;
} }
repaint();
// function to do special stuff // function to do special stuff
moveHandleAction( handleId, point, modifiers ); moveHandleAction( handleId, point, modifiers );
......
...@@ -671,6 +671,7 @@ KoParameterChangeCommand::~KoParameterChangeCommand() ...@@ -671,6 +671,7 @@ KoParameterChangeCommand::~KoParameterChangeCommand()
/// execute the command /// execute the command
void KoParameterChangeCommand::execute() void KoParameterChangeCommand::execute()
{ {
m_shape->repaint();
m_shape->moveHandle( m_handleId, m_endPoint ); m_shape->moveHandle( m_handleId, m_endPoint );
m_shape->repaint(); m_shape->repaint();
} }
...@@ -678,6 +679,7 @@ void KoParameterChangeCommand::execute() ...@@ -678,6 +679,7 @@ void KoParameterChangeCommand::execute()
/// revert the actions done in execute /// revert the actions done in execute
void KoParameterChangeCommand::unexecute() void KoParameterChangeCommand::unexecute()
{ {
m_shape->repaint();
m_shape->moveHandle( m_handleId, m_startPoint ); m_shape->moveHandle( m_handleId, m_startPoint );
m_shape->repaint(); m_shape->repaint();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment