From 4a5af5e7118e0a5f657fb8a9060373d1c003a0fd Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Fri, 20 Sep 2019 12:06:36 +0200 Subject: Fixes pointed by Thomas --- src/ui/tools/text-tool.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ui/tools/text-tool.cpp') diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp index bba60dd95..24fdaee62 100644 --- a/src/ui/tools/text-tool.cpp +++ b/src/ui/tools/text-tool.cpp @@ -1422,8 +1422,13 @@ SPCSSAttr *sp_text_get_style_at_cursor(ToolBase const *ec) return nullptr; } +// this two functions are commented because are used on clipboard +// and because slow the text pastinbg and usage a lot +// and couldent get it working properly we miss font size font style or never work +// and user usualy want paste as plain text and get the position context +// style. Anyway I retain for further usage. -static bool css_attrs_are_equal(SPCSSAttr const *first, SPCSSAttr const *second) +/* static bool css_attrs_are_equal(SPCSSAttr const *first, SPCSSAttr const *second) { if (!first && !second) { return true; @@ -1481,6 +1486,7 @@ std::vector sp_text_get_selected_style(ToolBase const *ec, unsigned positions->push_back(*k); return vec; } + */ /** Deletes the currently selected characters. Returns false if there is no -- cgit v1.2.3