When I have image data on the clipboard, Krita's new document window automatically sets the size of the Custom document size equal to the clipboard image data width and height size. When setting the flag "First layer from clipboard" to off, if automatically sets to On after selecting with the mouse either width or height, re setting width if you selected height or height if you selected width. Reproducible: Always Steps to Reproduce: 1. Copy any image data to clipboard. (from krita make a stroke, select the are with the painted stroke and hit Crtl+C. from gimp, open new image, press Ctrl + C to copy image) 2. In krita go to File > New 3. On the new document dialog select "Custom Document" 4. The flag "First layer from clipboard" should be On. Set it to Off 5. Set a new width using the mouse to select the string numbers (either by double clicking or click and drag) 6. Set a new height using the mouse to select the string numbers (either by double clicking or click and drag) Actual Results: The flag "First layer from clipboard" will be set to On auto magically The Width will be set to whatever width the image date from the clipboard is Expected Results: The flag "First layer from clipboard" should be kept Off The width should have the value entered by the user. Workaround: After setting the flag to Off Set cursor at the width value without selecting text using the mouse. Erase an d input a new value using only keyboard input. Press TAB twice to position cursor at Height. Set new value. Workaround 2: If lazy, just copy anything else, other than an image, to your clipboard. (text, file, etc)
Thanks for your report. We can confirm it. It should be an easy fix, so I'll mark it as a Junior Job for now.
Also, raising priority, since it's something that impacts the first impression of Krita.
Created attachment 78540 [details] First layer from clipboard" auto select problem fixed.
Looks good! Thanks -- I'll push the patch for you.
(In reply to comment #4) > Looks good! Thanks -- I'll push the patch for you. Was this pushed? I see no commit message about that.
Good point, I'll check with Sahil. He's got his own developer id now, he's keeping me real busy with his patches :-)
It's fixed for me, just so you'd know. :D Thanks!
Yeah, I pushed that. Forget my own head next.
The behavior of the "First layer from clipboard" option is still quite weird: i) When changing the size of the image manually, typing is veeery slow: it looks like the clip is recreated of every valueChanged() signal or something. Even when the checkbox is off, but the clipboard contains an image. ii) Switching off/on the checkbox sometimes resets the values of the size textboxes, even when you typed them manually before. Sometimes it happens even more weirdly: 1) type width; 2) type height; 3) after accepting height, the width is somehow reset to the clip's width automatically.
The second weirdness happens, when you do the following: 1) Type Width 2) Select entire Height field with mouse 3) Start typing Height without explicit deletion of the current contents In the result the Width is reset back to the clip's width.
Created attachment 79719 [details] Solves the problem of changing height and width easily The patch also does a part of the work of Bug: 187300- Better visibility of the new image..
Git commit 0545a852342b581da0d9f5f28905edaec0f19372 by Boudewijn Rempt. Committed on 06/05/2013 at 14:19. Pushed by rempt into branch 'master'. Fix issues with width/height when creatign image from clipboard Patch by Sahil Nagpal M +16 -10 krita/ui/forms/wdgnewimage.ui M +20 -10 krita/ui/widgets/kis_custom_image_widget.cc M +1 -0 krita/ui/widgets/kis_custom_image_widget.h http://commits.kde.org/calligra/0545a852342b581da0d9f5f28905edaec0f19372
Git commit f62ba74f786bb72392fbba5822c10decc0e796f4 by Dmitry Kazakov, on behalf of Boudewijn Rempt. Committed on 06/05/2013 at 14:19. Pushed by dkazakov into branch 'calligra/2.7'. Fix issues with width/height when creatign image from clipboard Patch by Sahil Nagpal M +16 -10 krita/ui/forms/wdgnewimage.ui M +20 -10 krita/ui/widgets/kis_custom_image_widget.cc M +1 -0 krita/ui/widgets/kis_custom_image_widget.h http://commits.kde.org/calligra/f62ba74f786bb72392fbba5822c10decc0e796f4
Git commit daa19d8f9843ee7451638abc13d54acdf693ace9 by Siddharth Sharma, on behalf of Boudewijn Rempt. Committed on 06/05/2013 at 14:19. Pushed by siddharthsharma into branch 'krita-psd-plugin-siddharth'. Fix issues with width/height when creatign image from clipboard Patch by Sahil Nagpal M +16 -10 krita/ui/forms/wdgnewimage.ui M +20 -10 krita/ui/widgets/kis_custom_image_widget.cc M +1 -0 krita/ui/widgets/kis_custom_image_widget.h http://commits.kde.org/calligra/daa19d8f9843ee7451638abc13d54acdf693ace9