Commit ee0c1ee2 authored by Sven Langkamp's avatar Sven Langkamp Committed by C. Boemann
Browse files

intialize colors in resource manager

BUG:285581
parent 0720e83c
......@@ -28,6 +28,7 @@
#include "KoShape.h"
#include "KoLineBorder.h"
#include "KoResourceManager_p.h"
#include <KoColorSpaceRegistry.h>
class KoCanvasResourceManager::Private
{
......@@ -39,6 +40,9 @@ KoCanvasResourceManager::KoCanvasResourceManager(QObject *parent)
: QObject(parent),
d(new Private())
{
const KoColorSpace* cs = KoColorSpaceRegistry::instance()->rgb8();
setForegroundColor(KoColor(Qt::black, cs));
setBackgroundColor(KoColor(Qt::white, cs));
}
KoCanvasResourceManager::~KoCanvasResourceManager()
......
Supports Markdown
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