Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Krita
Commits
6b704a4b
Commit
6b704a4b
authored
Sep 29, 2020
by
Dmitry Kazakov
Browse files
Fix brush outline jumps when switching between documents of different zoom
BUG:427094
parent
f6913ae9
Changes
3
Hide whitespace changes
Inline
Side-by-side
libs/ui/KisViewManager.cpp
View file @
6b704a4b
...
...
@@ -521,6 +521,7 @@ void KisViewManager::setCurrentView(KisView *view)
d
->
currentImageView
->
notifyCurrentStateChanged
(
true
);
d
->
currentImageView
->
canvasController
()
->
activate
();
d
->
currentImageView
->
canvasController
()
->
setFocus
();
d
->
currentImageView
->
zoomManager
()
->
updateCurrentZoomResource
();
d
->
viewConnections
.
addUniqueConnection
(
image
(),
SIGNAL
(
sigSizeChanged
(
QPointF
,
QPointF
)),
...
...
libs/ui/kis_zoom_manager.cc
View file @
6b704a4b
...
...
@@ -223,6 +223,14 @@ void KisZoomManager::updateImageBoundsSnapping()
}
}
void
KisZoomManager
::
updateCurrentZoomResource
()
{
const
qreal
effectiveZoom
=
m_view
->
canvasBase
()
->
coordinatesConverter
()
->
effectiveZoom
();
m_view
->
canvasBase
()
->
resourceManager
()
->
setResource
(
KoCanvasResource
::
EffectiveZoom
,
effectiveZoom
);
}
void
KisZoomManager
::
updateMouseTrackingConnections
()
{
bool
value
=
m_horizontalRuler
->
isVisible
()
&&
...
...
@@ -329,7 +337,7 @@ void KisZoomManager::slotUpdateGuiAfterZoomChange()
QIcon
(),
500
,
KisFloatingMessage
::
Low
,
Qt
::
AlignCenter
);
}
updateCurrentZoomResource
();
m_view
->
canvasBase
()
->
resourceManager
()
->
setResource
(
KoCanvasResource
::
EffectiveZoom
,
effectiveZoom
);
}
...
...
libs/ui/kis_zoom_manager.h
View file @
6b704a4b
...
...
@@ -65,6 +65,7 @@ public:
}
void
updateImageBoundsSnapping
();
void
updateCurrentZoomResource
();
QWidget
*
zoomActionWidget
()
const
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment