summaryrefslogtreecommitdiffstats
path: root/src/ui/clipboard.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-09-16 12:03:48 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-09-16 12:03:48 +0000
commit42ceb86a187d0e0714c67a420b84726fda5fae91 (patch)
tree79a981c75fafb06697ae3ee2c01e9ee5e2074fd0 /src/ui/clipboard.cpp
parentUpdate hr.po (diff)
downloadinkscape-42ceb86a187d0e0714c67a420b84726fda5fae91.tar.gz
inkscape-42ceb86a187d0e0714c67a420b84726fda5fae91.zip
Allow paste on flowbox at same sice of origin, also improve creation to get rid of transforms on origin
Diffstat (limited to 'src/ui/clipboard.cpp')
-rw-r--r--src/ui/clipboard.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp
index 078dfc125..fb7bebc39 100644
--- a/src/ui/clipboard.cpp
+++ b/src/ui/clipboard.cpp
@@ -1093,7 +1093,8 @@ bool ClipboardManagerImpl::_pasteText(SPDesktop *desktop)
if (textitem) {
textitem->hide_shape_inside();
}
- SPCSSAttr *css = take_style_from_item(tc->text);
+ // we realy only want to inherit container style
+ /* SPCSSAttr *css = take_style_from_item(tc->text);
for (int i = 0; i < nr_blocks; ++i)
{
gchar const *w = sp_repr_css_property(css, "font-size", "0px");
@@ -1102,7 +1103,7 @@ bool ClipboardManagerImpl::_pasteText(SPDesktop *desktop)
if (w && strcmp(w, "0px") != 0) {
sp_repr_css_set_property(te_selected_style[i], "font-size", w);
}
- }
+ } */
for (unsigned int i = 0; i < text.length(); ++i)
it.prevCharacter();
@@ -1114,7 +1115,7 @@ bool ClipboardManagerImpl::_pasteText(SPDesktop *desktop)
for (unsigned int j = te_selected_style_positions[i]; j < te_selected_style_positions[i+1]; ++j)
it_next.nextCharacter();
- sp_te_apply_style(tc->text, it, it_next, te_selected_style[i]);
+ // sp_te_apply_style(tc->text, it, it_next, te_selected_style[i]);
te_update_layout_now_recursive(tc->text);
for (unsigned int j = te_selected_style_positions[i]; j < te_selected_style_positions[i+1]; ++j)
it.nextCharacter();